-
Notifications
You must be signed in to change notification settings - Fork 96
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
Conversation
384c239
to
7e9b80b
Compare
1374097
to
39f7f03
Compare
@@ -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", |
There was a problem hiding this comment.
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' ); ?> |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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()
There was a problem hiding this 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.
c9256d1
to
70271f7
Compare
Changes
WP_Auth0_InitialSetup::init()
towp_auth0_setup_error_admin_notices()
WP_Auth0_InitialSetup::init_setup()
towp_auth0_initial_setup_init()
WP_Auth0_InitialSetup
error messageswpa0
to setup pagewpa0-setup
Testing
Checklist