-
Notifications
You must be signed in to change notification settings - Fork 92
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
Deprecating unused Lock Options classes and methods #444
Conversation
joshcanhelp
commented
Apr 23, 2018
- WP_Auth0_Lock_Options class
- WP_Auth0_Lock10_Options::get_lock_classname()
- WP_Auth0_Lock10_Options::isPasswordlessEnable()
- WP_Auth0_Lock10_Options::get_lock_show_method()
- WP_Auth0_Lock10_Options::get_custom_css()
- WP_Auth0_Lock10_Options::get_custom_js()
- WP_Auth0_Lock10_Options::can_show()
- WP_Auth0_Lock10_Options::get_cdn_url()
- WP_Auth0_Lock10_Options::get_wordpress_login_enabled()
- WP_Auth0_Lock10_Options::set_signup_mode()
- WP_Auth0_Lock10_Options::modal_button_name()
- WP_Auth0_Lock10_Options::get_custom_signup_fields()
- WP_Auth0_Lock10_Options::has_custom_signup_fields()
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.
when we deprecate something we usually have a reason and can provide an alternative. All this should be included in the deprecation message on the docblock.
lib/WP_Auth0_Lock10_Options.php
Outdated
if ( $this->_get_boolean( $this->wp_options->get( 'passwordless_enabled' ) ) ) { | ||
return 'Auth0LockPasswordless'; | ||
} else { | ||
return 'Auth0Lock'; | ||
} | ||
} | ||
|
||
// TODO: Deprecate - specific templates choose passwordless or not | ||
/** | ||
* @deprecated 3.6.0 - Not used |
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.
why?
lib/WP_Auth0_Lock10_Options.php
Outdated
* @deprecated 3.6.0 - Not used | ||
* | ||
* @return bool | ||
*/ | ||
public function isPasswordlessEnable() { |
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.
typo on this function name? 🤔 hehe
lib/WP_Auth0_Lock10_Options.php
Outdated
return $this->_get_boolean( $this->wp_options->get( 'wordpress_login_enabled' ) ); | ||
} | ||
|
||
public function get_auth0_implicit_workflow() { | ||
return $this->_get_boolean( $this->wp_options->get( 'auth0_implicit_workflow' ) ); | ||
} | ||
|
||
/** | ||
* @deprecated 3.6.0 - Not used |
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.
why?
lib/WP_Auth0_Lock10_Options.php
Outdated
@@ -93,7 +153,14 @@ public function show_as_modal() { | |||
return isset( $this->extended_settings['show_as_modal'] ) && $this->extended_settings['show_as_modal']; | |||
} | |||
|
|||
/** | |||
* @deprecated 3.6.0 - Not used |
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.
why?
lib/WP_Auth0_Lock10_Options.php
Outdated
@@ -183,7 +250,14 @@ protected function build_settings( $settings ) { | |||
return $options_obj; | |||
} | |||
|
|||
/** | |||
* @deprecated 3.6.0 - Not used |
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.
why?
lib/WP_Auth0_Lock10_Options.php
Outdated
@@ -192,7 +266,15 @@ public function get_custom_signup_fields() { | |||
|
|||
return $fields; | |||
} | |||
|
|||
/** | |||
* @deprecated 3.6.0 - Not used |
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.
why?
- WP_Auth0_Lock_Options class - WP_Auth0_Lock10_Options::get_lock_classname() - WP_Auth0_Lock10_Options::isPasswordlessEnable() - WP_Auth0_Lock10_Options::get_lock_show_method() - WP_Auth0_Lock10_Options::get_custom_css() - WP_Auth0_Lock10_Options::get_custom_js() - WP_Auth0_Lock10_Options::can_show() - WP_Auth0_Lock10_Options::get_cdn_url() - WP_Auth0_Lock10_Options::get_wordpress_login_enabled() - WP_Auth0_Lock10_Options::set_signup_mode() - WP_Auth0_Lock10_Options::modal_button_name() - WP_Auth0_Lock10_Options::get_custom_signup_fields() - WP_Auth0_Lock10_Options::has_custom_signup_fields()
7daf441
to
f5b1d9a
Compare
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.
LGTM