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

Deprecating unused Lock Options classes and methods #444

Merged
merged 2 commits into from
Apr 26, 2018

Conversation

joshcanhelp
Copy link
Contributor

  • 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()

@joshcanhelp joshcanhelp added this to the v3-Next milestone Apr 23, 2018
Copy link
Contributor

@lbalmaceda lbalmaceda left a 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.

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
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

* @deprecated 3.6.0 - Not used
*
* @return bool
*/
public function isPasswordlessEnable() {
Copy link
Contributor

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

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
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

@@ -183,7 +250,14 @@ protected function build_settings( $settings ) {
return $options_obj;
}

/**
* @deprecated 3.6.0 - Not used
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

@@ -192,7 +266,15 @@ public function get_custom_signup_fields() {

return $fields;
}

/**
* @deprecated 3.6.0 - Not used
Copy link
Contributor

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()
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

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

LGTM

@joshcanhelp joshcanhelp merged commit 74f2fd0 into dev Apr 26, 2018
@joshcanhelp joshcanhelp deleted the deprecate-lock-options branch April 26, 2018 16:09
@joshcanhelp joshcanhelp mentioned this pull request Jun 5, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 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.

None yet

2 participants