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

Deprecate WP_Auth0_Lock10_Options class #654

Merged
merged 1 commit into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/WP_Auth0_Lock10_Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,27 @@ public function get_implicit_callback_url() {
return $this->wp_options->get_wp_auth0_url( $this->get_callback_protocol(), true );
}

/**
* @deprecated - 3.10.0, not used.
*
* @return bool
*
* @codeCoverageIgnore - Deprecated.
*/
public function get_sso() {
// phpcs:ignore
@trigger_error( sprintf( __( 'Method %s is deprecated.', 'wp-auth0' ), __METHOD__ ), E_USER_DEPRECATED );
return $this->_get_boolean( $this->wp_options->get( 'sso' ) );
}

/**
* @deprecated - 3.10.0, not used.
*
* @codeCoverageIgnore - Deprecated.
*/
public function get_client_id() {
// phpcs:ignore
@trigger_error( sprintf( __( 'Method %s is deprecated.', 'wp-auth0' ), __METHOD__ ), E_USER_DEPRECATED );
return $this->wp_options->get( 'client_id' );
}

Expand Down
3 changes: 3 additions & 0 deletions lib/WP_Auth0_Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function __construct( WP_Auth0_Options $a0_options, WP_Auth0_Ip_Check $ip
$this->ip_check = $ip_check instanceof WP_Auth0_Ip_Check ? $ip_check : new WP_Auth0_Ip_Check( $a0_options );
}

/**
* TODO: Deprecate init()
*/
public function init() {
add_action( 'parse_request', array( $this, 'custom_requests' ) );
}
Expand Down