Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated from WP_Auth0_InitialSetup #754

Merged
merged 4 commits into from
Dec 20, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Dec 18, 2019

Changes

  • Moved WP_Auth0_InitialSetup::init() to wp_auth0_setup_error_admin_notices()
  • Moved WP_Auth0_InitialSetup::init_setup() to wp_auth0_initial_setup_init()
  • Update HTML classes in WP_Auth0_InitialSetup error messages
  • Changed error page from settings page wpa0 to setup page wpa0-setup

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.3

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp added this to the 4.0.0 milestone Dec 18, 2019
@joshcanhelp joshcanhelp force-pushed the remove-deprecated-from-initial-setup branch from 384c239 to 7e9b80b Compare December 18, 2019 20:30
@joshcanhelp joshcanhelp changed the title [WIP] Remove deprecated from WP_Auth0_InitialSetup Remove deprecated from WP_Auth0_InitialSetup Dec 19, 2019
@@ -38,7 +38,8 @@
"phpcbf": "\"vendor/bin/phpcbf\"",
"phpcbf-tests": "\"vendor/bin/phpcbf\" --standard=phpcs-test-ruleset.xml -s ./tests/",
"sniffs": "\"vendor/bin/phpcs\" -e",
"test": "\"vendor/bin/phpunit\" --coverage-text",
"test": "\"vendor/bin/phpunit\"",
"test-cov": "\"vendor/bin/phpunit\" --coverage-text",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this command to check coverage, default one does not (to speed up the checks).

<p>
<strong>
<?php echo __( 'There was an error creating the necessary client grants. ', 'wp-auth0' ); ?>
<?php _e( 'There was an error creating the necessary client grants. ', 'wp-auth0' ); ?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo __() is equivalent to _e()

<a href="https://manage.auth0.com">https://manage.auth0.com</a>
</strong>
</p>
</div>
<?php
}

public function init_setup() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to wp_auth0_initial_setup_init()

*
* @codeCoverageIgnore - Deprecated.
*/
public function init() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic moved to wp_auth0_setup_error_admin_notices()

@joshcanhelp joshcanhelp marked this pull request as ready for review December 20, 2019 02:25
@joshcanhelp joshcanhelp requested a review from a team December 20, 2019 02:25
@jimmyjames jimmyjames requested review from jimmyjames and removed request for a team December 20, 2019 19:39
Copy link

@jimmyjames jimmyjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question and a minor nit (possible typo), otherwise this looks good.

lib/initial-setup/WP_Auth0_InitialSetup.php Show resolved Hide resolved
lib/initial-setup/WP_Auth0_InitialSetup.php Outdated Show resolved Hide resolved
@joshcanhelp joshcanhelp force-pushed the remove-deprecated-from-initial-setup branch from c9256d1 to 70271f7 Compare December 20, 2019 20:04
@joshcanhelp joshcanhelp merged commit d9dfbb2 into master Dec 20, 2019
@joshcanhelp joshcanhelp deleted the remove-deprecated-from-initial-setup branch December 20, 2019 20:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants