From 81571d9dae9344e807ae436624ef2dba13d7a070 Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Sat, 30 Mar 2019 14:13:28 -0700 Subject: [PATCH] Deprecate WP_Auth0_Lock10_Options class --- lib/WP_Auth0_Lock10_Options.php | 16 ++++++++++++++++ lib/WP_Auth0_Routes.php | 3 +++ 2 files changed, 19 insertions(+) diff --git a/lib/WP_Auth0_Lock10_Options.php b/lib/WP_Auth0_Lock10_Options.php index 8c34a5a2..e1e52f09 100644 --- a/lib/WP_Auth0_Lock10_Options.php +++ b/lib/WP_Auth0_Lock10_Options.php @@ -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' ); } diff --git a/lib/WP_Auth0_Routes.php b/lib/WP_Auth0_Routes.php index 7a90cc5c..2362a23d 100755 --- a/lib/WP_Auth0_Routes.php +++ b/lib/WP_Auth0_Routes.php @@ -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' ) ); }