rebase on oct-10-2023
This commit is contained in:
@@ -1,169 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class handles the data for the option where the Ryte data is stored.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class WPSEO_Ryte_Option {
|
||||
|
||||
/**
|
||||
* Indicates the data is not fetched.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var int
|
||||
*/
|
||||
const NOT_FETCHED = 0;
|
||||
|
||||
/**
|
||||
* Indicates the option is indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var int
|
||||
*/
|
||||
const IS_INDEXABLE = 0;
|
||||
|
||||
/**
|
||||
* Indicates the option is not indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var int
|
||||
*/
|
||||
const IS_NOT_INDEXABLE = 0;
|
||||
|
||||
/**
|
||||
* Indicates the data could not be fetched.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var int
|
||||
*/
|
||||
const CANNOT_FETCH = -1;
|
||||
|
||||
/**
|
||||
* The name of the option where data will be stored.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var string
|
||||
*/
|
||||
const OPTION_NAME = '';
|
||||
|
||||
/**
|
||||
* The key of the status in the option.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var string
|
||||
*/
|
||||
const STATUS = '';
|
||||
|
||||
/**
|
||||
* The key of the last fetch date in the option.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var string
|
||||
*/
|
||||
const LAST_FETCH = '';
|
||||
|
||||
/**
|
||||
* The limit for fetching the status manually.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @var int
|
||||
*/
|
||||
const FETCH_LIMIT = 0;
|
||||
|
||||
/**
|
||||
* Setting the object by setting the properties.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Getting the status from the option.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return int|string
|
||||
*/
|
||||
public function get_status() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saving the status to the options.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param string $status The status to save.
|
||||
*/
|
||||
public function set_status( $status ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Saving the last fetch timestamp to the options.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param int $timestamp Timestamp with the new value.
|
||||
*/
|
||||
public function set_last_fetch( $timestamp ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether the indexability status should be fetched.
|
||||
*
|
||||
* If LAST_FETCH isn't set, we assume the indexability status hasn't been fetched
|
||||
* yet and return true. Then, we check whether the last fetch is within the
|
||||
* FETCH_LIMIT time interval (15 seconds) to avoid too many consecutive API calls.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool Whether the indexability status should be fetched.
|
||||
*/
|
||||
public function should_be_fetched() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saving the option with the current data.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function save_option() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of the onpage_enabled status.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_enabled() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class will fetch a new status from Ryte and if it's necessary it will
|
||||
* notify the site admin by email and remove the current meta value to hide the
|
||||
* notice for all admin users.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class WPSEO_Ryte_Request {
|
||||
|
||||
/**
|
||||
* Sends a request to the Ryte API to check whether a URL is indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param string $target_url The URL to check indexability for.
|
||||
* @param array $parameters Array of extra parameters to send to the Ryte API.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function do_request( $target_url, $parameters = [] ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -1,284 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin
|
||||
*/
|
||||
|
||||
/**
|
||||
* Handles the request for getting the Ryte status.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
*/
|
||||
class WPSEO_Ryte implements WPSEO_WordPress_Integration {
|
||||
|
||||
/**
|
||||
* Is the request started by pressing the fetch button.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $is_manual_request = false;
|
||||
|
||||
/**
|
||||
* Holds the Ryte API response.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $ryte_response = null;
|
||||
|
||||
/**
|
||||
* Constructs the object.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
$this->maybe_add_weekly_schedule();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the hooks.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( ! self::is_active() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Sets the action for the Ryte fetch cron job.
|
||||
add_action( 'wpseo_ryte_fetch', [ $this, 'fetch_from_ryte' ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if we can use the functionality.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if this functionality can be used.
|
||||
*/
|
||||
public static function is_active() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( wp_doing_ajax() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! WPSEO_Options::get( 'ryte_indexability' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hooks to run on plugin activation.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function activate_hooks() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( $this->get_option()->is_enabled() ) {
|
||||
$this->schedule_cron();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->unschedule_cron();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether to add a custom cron weekly schedule.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function maybe_add_weekly_schedule() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
// If there's no default cron weekly schedule, add a custom one.
|
||||
add_filter( 'cron_schedules', [ $this, 'add_weekly_schedule' ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a custom weekly cron schedule.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param array $schedules The existing custom cron schedules.
|
||||
*
|
||||
* @return array Enriched list of custom cron schedules.
|
||||
*/
|
||||
public function add_weekly_schedule( $schedules ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( ! is_array( $schedules ) ) {
|
||||
$schedules = [];
|
||||
}
|
||||
|
||||
/*
|
||||
* Starting with version 5.4, WordPress does have a default weekly cron
|
||||
* schedule. See https://core.trac.wordpress.org/changeset/47062.
|
||||
* We need to add a custom one only if the default one doesn't exist.
|
||||
*/
|
||||
if ( isset( $schedules['weekly'] ) ) {
|
||||
return $schedules;
|
||||
}
|
||||
|
||||
$schedules['weekly'] = [
|
||||
'interval' => WEEK_IN_SECONDS,
|
||||
'display' => __( 'Once Weekly', 'wordpress-seo' ),
|
||||
];
|
||||
|
||||
return $schedules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches the data from Ryte.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool|null Whether the request ran.
|
||||
*/
|
||||
public function fetch_from_ryte() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
// Don't do anything when the WordPress environment type isn't "production".
|
||||
if ( wp_get_environment_type() !== 'production' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$ryte_option = $this->get_option();
|
||||
if ( ! $ryte_option->should_be_fetched() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$new_status = $this->request_indexability();
|
||||
|
||||
// Updates the timestamp in the option.
|
||||
$ryte_option->set_last_fetch( time() );
|
||||
|
||||
$ryte_option->set_status( $new_status );
|
||||
$ryte_option->save_option();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the option to use.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return WPSEO_Ryte_Option The option.
|
||||
*/
|
||||
protected function get_option() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
return new WPSEO_Ryte_Option();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a request to Ryte to get the indexability status.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return int The indexability status value.
|
||||
*/
|
||||
protected function request_indexability() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
$parameters = [];
|
||||
if ( $this->wordfence_protection_enabled() ) {
|
||||
$parameters['wf_strict'] = 1;
|
||||
}
|
||||
|
||||
$request = new WPSEO_Ryte_Request();
|
||||
$response = $request->do_request( get_option( 'home' ), $parameters );
|
||||
|
||||
// Populate the ryte_response property.
|
||||
$this->ryte_response = $response;
|
||||
|
||||
// It's a valid Ryte response because the array contains an `is_indexable` element.
|
||||
if ( isset( $response['is_indexable'] ) ) {
|
||||
return (int) $response['is_indexable'];
|
||||
}
|
||||
|
||||
// It's not a valid Ryte response.
|
||||
return WPSEO_Ryte_Option::CANNOT_FETCH;
|
||||
}
|
||||
|
||||
/**
|
||||
* Schedules the cronjob to get the new indexability status.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function schedule_cron() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( wp_next_scheduled( 'wpseo_ryte_fetch' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_schedule_event( time(), 'weekly', 'wpseo_ryte_fetch' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Unschedules the cronjob to get the new indexability status.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function unschedule_cron() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( ! wp_next_scheduled( 'wpseo_ryte_fetch' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_clear_scheduled_hook( 'wpseo_ryte_fetch' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if WordFence protects the site against 'fake' Google crawlers.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if WordFence protects the site.
|
||||
*/
|
||||
private function wordfence_protection_enabled() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
if ( ! class_exists( 'wfConfig' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! method_exists( 'wfConfig', 'get' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (bool) wfConfig::get( 'blockFakeBots' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the Ryte API response property.
|
||||
*
|
||||
* @deprecated 18.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return array|WP_Error The response or WP_Error on failure.
|
||||
*/
|
||||
public function get_response() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 18.5' );
|
||||
return $this->ryte_response;
|
||||
}
|
||||
}
|
||||
@@ -38,12 +38,12 @@ class Yoast_View_Utils {
|
||||
*
|
||||
* Used for all the Help sections for indexable objects like post types, taxonomies, or archives.
|
||||
*
|
||||
* @param string|object $post_type The post type to show the search results help for.
|
||||
* @param string $help_text_switch Switch the help text to one that's more appropriate
|
||||
* for the indexable object type the help section is for.
|
||||
* @deprecated 20.3
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param string|object $post_type The post type to show the search results help for.
|
||||
* @param string $help_text_switch Switch the help text to one that's more appropriate
|
||||
* for the indexable object type the help section is for.
|
||||
* @return object The help panel instance.
|
||||
*/
|
||||
public function search_results_setting_help( $post_type, $help_text_switch = '' ) {
|
||||
@@ -79,11 +79,11 @@ class Yoast_View_Utils {
|
||||
/**
|
||||
* Generates the OpenGraph disabled alert, depending on whether the OpenGraph feature is disabled.
|
||||
*
|
||||
* @param string $type The type of message. Can be altered to homepage, taxonomies or archives. Empty string by default.
|
||||
*
|
||||
* @deprecated 20.3
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param string $type The type of message. Can be altered to homepage, taxonomies or archives. Empty string by default.
|
||||
*
|
||||
* @return string The alert. Returns an empty string if the setting is enabled.
|
||||
*/
|
||||
public function generate_opengraph_disabled_alert( $type = '' ) {
|
||||
|
||||
@@ -132,6 +132,7 @@ class WPSEO_Breadcrumbs {
|
||||
private function render() {
|
||||
$presenter = new Breadcrumbs_Presenter();
|
||||
$context = $this->context_memoizer->for_current_page();
|
||||
|
||||
/** This filter is documented in src/integrations/front-end-integration.php */
|
||||
$presentation = apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
|
||||
$presenter->presentation = $presentation;
|
||||
|
||||
@@ -113,6 +113,7 @@ class WPSEO_Frontend {
|
||||
|
||||
$presentation = $this->get_current_page_presentation();
|
||||
$presenter = new Canonical_Presenter();
|
||||
|
||||
/** This filter is documented in src/integrations/front-end-integration.php */
|
||||
$presenter->presentation = $presentation;
|
||||
$presenter->helpers = $this->helpers;
|
||||
@@ -270,6 +271,7 @@ class WPSEO_Frontend {
|
||||
*/
|
||||
private function get_current_page_presentation() {
|
||||
$context = $this->context_memoizer->for_current_page();
|
||||
|
||||
/** This filter is documented in src/integrations/front-end-integration.php */
|
||||
return apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class Yoast_I18n_v3 {
|
||||
* @param bool $show_translation_box Whether the translation box should be shown.
|
||||
*/
|
||||
public function __construct( $args, $show_translation_box = true ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ class Yoast_I18n_v3 {
|
||||
* @return bool Returns true if the language is en_US.
|
||||
*/
|
||||
protected function is_default_language( $language ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -49,12 +49,10 @@ class Yoast_I18n_v3 {
|
||||
* @deprecated 19.12
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @return string The i18n promo message.
|
||||
*/
|
||||
public function get_promo_message() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -64,12 +62,10 @@ class Yoast_I18n_v3 {
|
||||
* @deprecated 19.12
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @access private
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_dismiss_i18n_message_button() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -78,11 +74,9 @@ class Yoast_I18n_v3 {
|
||||
*
|
||||
* @deprecated 19.12
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function promo() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,6 +88,6 @@ class Yoast_I18n_v3 {
|
||||
* @param string $api_url The new API URL.
|
||||
*/
|
||||
public function set_api_url( $api_url ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 19.12' );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Actions\Configuration;
|
||||
|
||||
/**
|
||||
* Class Configuration_Workout_Action.
|
||||
*
|
||||
* @deprecated 19.0 - Use \Yoast\WP\SEO\Actions\First_Time_Configuration_Action instead.
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Configuration_Workout_Action extends First_Time_Configuration_Action {}
|
||||
@@ -80,6 +80,7 @@ class Indexables_Page_Action {
|
||||
$object_sub_types = \array_values( $this->post_type_helper->get_public_post_types() );
|
||||
|
||||
$excluded_post_types = \apply_filters( 'wpseo_indexable_excluded_post_types', [ 'attachment' ] );
|
||||
|
||||
/**
|
||||
* Filter: 'wpseo_indexable_included_post_types' - Allow developers to specify which post types will
|
||||
* be shown in the indexables overview cards.
|
||||
|
||||
@@ -30,10 +30,10 @@ class Settings_Introduction_Action {
|
||||
/**
|
||||
* Constructs Settings_Introduction_Action.
|
||||
*
|
||||
* @param User_Helper $user_helper The User_Helper.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param User_Helper $user_helper The User_Helper.
|
||||
*/
|
||||
public function __construct( User_Helper $user_helper ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -44,12 +44,12 @@ class Settings_Introduction_Action {
|
||||
/**
|
||||
* Retrieves the Wistia embed permission value.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool The value of the Wistia embed permission.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*/
|
||||
public function get_wistia_embed_permission() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -63,14 +63,14 @@ class Settings_Introduction_Action {
|
||||
/**
|
||||
* Sets the Wistia embed permission value.
|
||||
*
|
||||
* @param bool $value The value.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param bool $value The value.
|
||||
*
|
||||
* @return bool Whether the update was successful.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*/
|
||||
public function set_wistia_embed_permission( $value ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -91,12 +91,12 @@ class Settings_Introduction_Action {
|
||||
/**
|
||||
* Retrieves the show value.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool The value of show.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*/
|
||||
public function get_show() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -110,14 +110,14 @@ class Settings_Introduction_Action {
|
||||
/**
|
||||
* Sets the show value.
|
||||
*
|
||||
* @param bool $value The value.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param bool $value The value.
|
||||
*
|
||||
* @return bool Whether the update was successful.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*/
|
||||
public function set_show( $value ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -140,9 +140,9 @@ class Settings_Introduction_Action {
|
||||
*
|
||||
* @param int $user_id User ID.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*
|
||||
* @return array The (meta) values.
|
||||
*
|
||||
* @throws Exception If an invalid user ID is supplied.
|
||||
*/
|
||||
private function get_values_for_user( $user_id ) {
|
||||
$values = $this->user_helper->get_meta( $user_id, self::USER_META_KEY, true );
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Conditionals;
|
||||
|
||||
/**
|
||||
* Feature flag conditional for the front-end inspector.
|
||||
*
|
||||
* @deprecated 19.5
|
||||
*/
|
||||
class Front_End_Inspector_Conditional extends Feature_Flag_Conditional {
|
||||
|
||||
/**
|
||||
* Returns the name of the feature flag.
|
||||
*
|
||||
* @deprecated 19.5
|
||||
*
|
||||
* @return string The name of the feature flag.
|
||||
*/
|
||||
protected function get_feature_flag() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.5' );
|
||||
return 'FRONT_END_INSPECTOR';
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Conditionals;
|
||||
|
||||
/**
|
||||
* Checks if the YOAST_SEO_JAPANESE_SUPPORT constant is set.
|
||||
*
|
||||
* @deprecated 17.9
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Japanese_Support_Conditional extends Feature_Flag_Conditional {
|
||||
|
||||
/**
|
||||
* Returns the name of the feature flag.
|
||||
* 'YOAST_SEO_' is automatically prepended to it and it will be uppercased.
|
||||
*
|
||||
* @deprecated 17.9
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string the name of the feature flag.
|
||||
*/
|
||||
public function get_feature_flag() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 17.9' );
|
||||
return 'JAPANESE_SUPPORT';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Integrations\Admin;
|
||||
|
||||
use WPSEO_Admin_Asset_Manager;
|
||||
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
|
||||
use Yoast\WP\SEO\Helpers\Capability_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Current_Page_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Options_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Product_Helper;
|
||||
use Yoast\WP\SEO\Integrations\Integration_Interface;
|
||||
|
||||
/**
|
||||
* Old_Premium_Integration class
|
||||
*
|
||||
* @deprecated 20.10
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Old_Premium_Integration implements Integration_Interface {
|
||||
|
||||
/**
|
||||
* The options' helper.
|
||||
*
|
||||
* @var Options_Helper
|
||||
*/
|
||||
private $options_helper;
|
||||
|
||||
/**
|
||||
* The product helper.
|
||||
*
|
||||
* @var Product_Helper
|
||||
*/
|
||||
private $product_helper;
|
||||
|
||||
/**
|
||||
* The capability helper.
|
||||
*
|
||||
* @var Capability_Helper
|
||||
*/
|
||||
private $capability_helper;
|
||||
|
||||
/**
|
||||
* The admin asset manager.
|
||||
*
|
||||
* @var WPSEO_Admin_Asset_Manager
|
||||
*/
|
||||
private $admin_asset_manager;
|
||||
|
||||
/**
|
||||
* The Current_Page_Helper.
|
||||
*
|
||||
* @var Current_Page_Helper
|
||||
*/
|
||||
private $current_page_helper;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get_conditionals() {
|
||||
return [ Admin_Conditional::class ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Old_Premium_Integration constructor.
|
||||
*
|
||||
* @deprecated 20.10
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Options_Helper $options_helper The options helper.
|
||||
* @param Product_Helper $product_helper The product helper.
|
||||
* @param Capability_Helper $capability_helper The capability helper.
|
||||
* @param WPSEO_Admin_Asset_Manager $admin_asset_manager The admin asset manager.
|
||||
* @param Current_Page_Helper $current_page_helper The Current_Page_Helper.
|
||||
*/
|
||||
public function __construct(
|
||||
Options_Helper $options_helper,
|
||||
Product_Helper $product_helper,
|
||||
Capability_Helper $capability_helper,
|
||||
WPSEO_Admin_Asset_Manager $admin_asset_manager,
|
||||
Current_Page_Helper $current_page_helper
|
||||
) {
|
||||
$this->options_helper = $options_helper;
|
||||
$this->product_helper = $product_helper;
|
||||
$this->capability_helper = $capability_helper;
|
||||
$this->admin_asset_manager = $admin_asset_manager;
|
||||
$this->current_page_helper = $current_page_helper;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated 20.10
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function register_hooks() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a notice if Premium is older than 20.0-RC1 so Settings might be missing from the UI.
|
||||
*
|
||||
* @deprecated 20.10
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function old_premium_notice() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Dismisses the old premium notice.
|
||||
*
|
||||
* @deprecated 20.10
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function dismiss_old_premium_notice() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace Yoast\WP\SEO\Integrations\Admin;
|
||||
|
||||
use WPSEO_Admin_Asset_Manager;
|
||||
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
|
||||
use Yoast\WP\SEO\Conditionals\Admin\Non_Network_Admin_Conditional;
|
||||
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
|
||||
use Yoast\WP\SEO\Integrations\Integration_Interface;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,163 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Integrations\Admin;
|
||||
|
||||
use WPSEO_Ryte_Option;
|
||||
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
|
||||
use Yoast\WP\SEO\Helpers\Options_Helper;
|
||||
use Yoast\WP\SEO\Integrations\Integration_Interface;
|
||||
|
||||
/**
|
||||
* Handles the request for getting the Ryte status.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Ryte_Integration implements Integration_Interface {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Options_Helper $options_helper The options helper object used to determine if Ryte is active or not.
|
||||
*/
|
||||
public function __construct( Options_Helper $options_helper ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the hooks.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the conditionals based on which this loadable should be active.
|
||||
*
|
||||
* In this case: only when on an admin page.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return array The conditionals.
|
||||
*/
|
||||
public static function get_conditionals() {
|
||||
return [ Admin_Conditional::class ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if we can use the functionality.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if this functionality can be used.
|
||||
*/
|
||||
public function is_active() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hooks to run on plugin activation.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function activate_hooks() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether to add a custom cron weekly schedule.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function maybe_add_weekly_schedule() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a custom weekly cron schedule.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param array $schedules The existing custom cron schedules.
|
||||
*
|
||||
* @return array Enriched list of custom cron schedules.
|
||||
*/
|
||||
public function add_weekly_schedule( $schedules ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches the data from Ryte.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool Whether the request ran.
|
||||
*/
|
||||
public function fetch_from_ryte() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the option to use.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return WPSEO_Ryte_Option The option.
|
||||
*/
|
||||
public function get_option() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return new WPSEO_Ryte_Option();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a request to Ryte to get the indexability status.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return int The indexability status value.
|
||||
*/
|
||||
protected function request_indexability() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the Ryte API response property.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return array The response or WP_Error on failure.
|
||||
*/
|
||||
public function get_response() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @return array
|
||||
*/
|
||||
public static function get_conditionals() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
return [ Admin_Conditional::class, Open_Graph_Conditional::class ];
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function register_hooks() {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\add_action( 'Yoast\WP\SEO\admin_author_archives_meta_internal', [ $this, 'social_author_archives' ] );
|
||||
\add_action( 'Yoast\WP\SEO\admin_date_archives_meta_internal', [ $this, 'social_date_archives' ] );
|
||||
\add_action( 'Yoast\WP\SEO\admin_post_types_beforearchive_internal', [ $this, 'social_post_type' ], \PHP_INT_MAX, 2 );
|
||||
@@ -110,7 +110,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @param Yoast_Form $yform The form builder.
|
||||
*/
|
||||
public function social_author_archives( $yform ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
$identifier = 'author-wpseo';
|
||||
$page_type_recommended = $this->get_admin_recommended_replace_vars()->determine_for_archive( 'author' );
|
||||
$page_type_specific = $this->get_admin_editor_specific_replace_vars()->determine_for_archive( 'author' );
|
||||
@@ -127,7 +127,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @param Yoast_Form $yform The form builder.
|
||||
*/
|
||||
public function social_date_archives( $yform ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
$identifier = 'archive-wpseo';
|
||||
$page_type_recommended = $this->get_admin_recommended_replace_vars()->determine_for_archive( 'date' );
|
||||
$page_type_specific = $this->get_admin_editor_specific_replace_vars()->determine_for_archive( 'date' );
|
||||
@@ -145,7 +145,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @param string $post_type_name The name of the current post_type that gets the social fields added.
|
||||
*/
|
||||
public function social_post_type( $yform, $post_type_name ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
if ( $post_type_name === 'attachment' ) {
|
||||
return;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @param string $post_type_name The name of the current post_type that gets the social fields added.
|
||||
*/
|
||||
public function social_post_types_archive( $yform, $post_type_name ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
$identifier = 'ptarchive-' . $post_type_name;
|
||||
$page_type_recommended = $this->get_admin_recommended_replace_vars()->determine_for_archive( $post_type_name );
|
||||
$page_type_specific = $this->get_admin_editor_specific_replace_vars()->determine_for_archive( $post_type_name );
|
||||
@@ -184,7 +184,7 @@ class Social_Templates_Integration implements Integration_Interface {
|
||||
* @param WP_Taxonomy $taxonomy The taxonomy that gets the social fields added.
|
||||
*/
|
||||
public function social_taxonomies( $yform, $taxonomy ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.3' );
|
||||
$identifier = 'tax-' . $taxonomy->name;
|
||||
$page_type_recommended = $this->get_admin_recommended_replace_vars()->determine_for_term( $taxonomy->name );
|
||||
$page_type_specific = $this->get_admin_editor_specific_replace_vars()->determine_for_term( $taxonomy->name );
|
||||
|
||||
@@ -69,11 +69,11 @@ class Schema_Blocks implements Integration_Interface {
|
||||
/**
|
||||
* Initializes the integration.
|
||||
*
|
||||
* This is the place to register hooks and filters.
|
||||
*
|
||||
* @deprecated 20.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* This is the place to register hooks and filters.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_hooks() {
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace Yoast\WP\SEO\Integrations\Third_Party;
|
||||
|
||||
use Yoast\WP\SEO\Conditionals\Front_End_Conditional;
|
||||
use Yoast\WP\SEO\Conditionals\Open_Graph_Conditional;
|
||||
use Yoast\WP\SEO\Conditionals\The_Events_Calendar_Conditional;
|
||||
use Yoast\WP\SEO\Integrations\Integration_Interface;
|
||||
|
||||
/**
|
||||
@@ -45,12 +44,12 @@ class The_Events_Calendar implements Integration_Interface {
|
||||
/**
|
||||
* Adds the events graph pieces to the schema collector.
|
||||
*
|
||||
* @param array $pieces The current graph pieces.
|
||||
* @param string $context The current context.
|
||||
*
|
||||
* @deprecated 19.12
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param array $pieces The current graph pieces.
|
||||
* @param string $context The current context.
|
||||
*
|
||||
* @return array Extended graph pieces.
|
||||
*/
|
||||
public function add_graph_pieces( $pieces, $context ) {
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Presenters\Admin;
|
||||
|
||||
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
|
||||
|
||||
/**
|
||||
* Class Auto_Update_Notification_Presenter.
|
||||
*
|
||||
* @deprecated 19.8
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Auto_Update_Notification_Presenter extends Abstract_Presenter {
|
||||
|
||||
/**
|
||||
* Returns the notification as an HTML string.
|
||||
*
|
||||
* @deprecated 19.8
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string The notification in an HTML string representation.
|
||||
*/
|
||||
public function present() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.8' );
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message to show.
|
||||
*
|
||||
* @deprecated 19.8
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string The message.
|
||||
*/
|
||||
protected function get_message() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.8' );
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
@@ -1,188 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Routes;
|
||||
|
||||
use WP_REST_Request;
|
||||
use Yoast\WP\SEO\Actions\Configuration\Configuration_Workout_Action;
|
||||
use Yoast\WP\SEO\Conditionals\No_Conditionals;
|
||||
|
||||
/**
|
||||
* Configuration_Workout_Route class.
|
||||
*
|
||||
* @deprecated 19.0 - Use \Yoast\WP\SEO\Actions\First_Time_Configuration_Action instead.
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Configuration_Workout_Route implements Route_Interface {
|
||||
|
||||
use No_Conditionals;
|
||||
|
||||
/**
|
||||
* Represents a site representation route.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const SITE_REPRESENTATION_ROUTE = '/site_representation';
|
||||
|
||||
/**
|
||||
* Represents a social profiles route.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const SOCIAL_PROFILES_ROUTE = '/social_profiles';
|
||||
|
||||
/**
|
||||
* Represents a person's social profiles route.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const PERSON_SOCIAL_PROFILES_ROUTE = '/person_social_profiles';
|
||||
|
||||
/**
|
||||
* Represents a route to enable/disable tracking.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const ENABLE_TRACKING_ROUTE = '/enable_tracking';
|
||||
|
||||
/**
|
||||
* Represents a route to check if current user has the correct capabilities to edit another user's profile.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const CHECK_CAPABILITY_ROUTE = '/check_capability';
|
||||
|
||||
/**
|
||||
* Configuration_Workout_Route constructor.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Configuration_Workout_Action $configuration_workout_action The configuration workout action.
|
||||
*/
|
||||
public function __construct(
|
||||
Configuration_Workout_Action $configuration_workout_action
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers routes with WordPress.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_routes() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::register_routes' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the site representation values.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_site_representation( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::set_site_representation' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the social profiles values.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_social_profiles( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::set_social_profiles' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a person's social profiles values.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function get_person_social_profiles( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::get_person_social_profiles' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a person's social profiles values.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_person_social_profiles( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::set_person_social_profiles' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current user has the correct capability to edit a specific user.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function check_capability( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::check_capability' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables tracking.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_enable_tracking( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::set_enable_tracking' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current user has the right capability.
|
||||
*
|
||||
* @deprecated 19.0
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function can_manage_options() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::can_manage_options' );
|
||||
|
||||
return \current_user_can( 'wpseo_manage_options' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current user has the capability to edit a specific user.
|
||||
*
|
||||
* @param WP_REST_Request $request The request.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function can_edit_user( WP_REST_Request $request ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.0', '\Yoast\WP\SEO\Routes\First_Time_Configuration_Route::can_edit_user' );
|
||||
}
|
||||
}
|
||||
@@ -49,10 +49,10 @@ class Settings_Introduction_Route implements Route_Interface {
|
||||
/**
|
||||
* Constructs Settings_Introduction_Route.
|
||||
*
|
||||
* @param Settings_Introduction_Action $settings_introduction_action The $settings_introduction_action.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Settings_Introduction_Action $settings_introduction_action The $settings_introduction_action.
|
||||
*/
|
||||
public function __construct( Settings_Introduction_Action $settings_introduction_action ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );
|
||||
@@ -177,11 +177,11 @@ class Settings_Introduction_Route implements Route_Interface {
|
||||
/**
|
||||
* Sets the value of the wistia embed permission.
|
||||
*
|
||||
* @param WP_REST_Request $request The request object.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request object.
|
||||
*
|
||||
* @return WP_REST_Response|WP_Error The success or failure response.
|
||||
*/
|
||||
public function set_wistia_embed_permission( WP_REST_Request $request ) {
|
||||
@@ -243,11 +243,11 @@ class Settings_Introduction_Route implements Route_Interface {
|
||||
/**
|
||||
* Sets the value of show.
|
||||
*
|
||||
* @param WP_REST_Request $request The request object.
|
||||
*
|
||||
* @deprecated 20.7
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param WP_REST_Request $request The request object.
|
||||
*
|
||||
* @return WP_REST_Response|WP_Error The success or failure response.
|
||||
*/
|
||||
public function set_show( WP_REST_Request $request ) {
|
||||
|
||||
@@ -7,10 +7,10 @@ namespace Yoast\WP\SEO\Schema_Templates\Assets;
|
||||
/**
|
||||
* Class Icons.
|
||||
*
|
||||
* Provides SVG icons as strings.
|
||||
*
|
||||
* @deprecated 20.5
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* Provides SVG icons as strings.
|
||||
*/
|
||||
class Icons {
|
||||
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
/**
|
||||
* Passes if the health check can reach the MyYoast API using a recent enough cURL version.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Curl_Check extends Health_Check {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Curl_Runner $runner The object that implements the actual health check.
|
||||
* @param Curl_Reports $reports The object that generates WordPress-friendly results.
|
||||
*/
|
||||
public function __construct(
|
||||
Curl_Runner $runner,
|
||||
Curl_Reports $reports
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a human-readable label for this health check.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string The human-readable label.
|
||||
*/
|
||||
public function get_test_label() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the WordPress-friendly health check result.
|
||||
*
|
||||
* @return string[] The WordPress-friendly health check result.
|
||||
*/
|
||||
protected function get_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
use WPSEO_Shortlinker;
|
||||
|
||||
/**
|
||||
* Presents a set of different messages for the cURL health check.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Curl_Reports {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Report_Builder_Factory $report_builder_factory The factory for result builder objects.
|
||||
* This class uses the report builder to generate WordPress-friendly
|
||||
* health check results.
|
||||
* @param WPSEO_Shortlinker $shortlinker The WPSEO_Shortlinker object used to generate short links.
|
||||
*/
|
||||
public function __construct(
|
||||
Report_Builder_Factory $report_builder_factory,
|
||||
WPSEO_Shortlinker $shortlinker
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message for a successful health check.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_success_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message for when the health check was unable to reach the MyYoast API.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_my_yoast_api_not_reachable_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message for a successful health check.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_no_recent_curl_version_installed_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
use WPSEO_Addon_Manager;
|
||||
use Yoast\WP\SEO\Helpers\Curl_Helper;
|
||||
|
||||
/**
|
||||
* Runs the Curl health check.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Curl_Runner implements Runner_Interface {
|
||||
|
||||
/**
|
||||
* Sets the minimum cURL version for this health check to pass.
|
||||
*/
|
||||
const MINIMUM_CURL_VERSION = '7.34.0';
|
||||
|
||||
/**
|
||||
* Sets the target URL for testing whether the MyYoast API is reachable.
|
||||
*/
|
||||
const MYYOAST_API_REQUEST_URL = 'sites/current';
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @psalm-suppress InvalidClass MyYoast is a product name, so it's an exception to the class naming conventions.
|
||||
* @param WPSEO_Addon_Manager $addon_manager The add-on manager.
|
||||
* @param MyYoast_Api_Request_Factory $my_yoast_api_request_factory A MyYoast API request object.
|
||||
* @param Curl_Helper $curl_helper A cURL helper object for obtaining
|
||||
* cURL installation information.
|
||||
*/
|
||||
public function __construct(
|
||||
WPSEO_Addon_Manager $addon_manager,
|
||||
MyYoast_Api_Request_Factory $my_yoast_api_request_factory,
|
||||
Curl_Helper $curl_helper
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the health check. Checks if cURL is installed and up to date, and if it's able to reach the MyYoast API
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the health check was successful.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if all the routines for this health check were successful.
|
||||
*/
|
||||
public function is_successful() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether there are premium plugins installed.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if there are premium plugins installed.
|
||||
*/
|
||||
public function has_premium_plugins_installed() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether cURL was able to reach the MyYoast API.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if cURL was able to reach the MyYoast API.
|
||||
*/
|
||||
public function can_reach_my_yoast_api() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the installed cURL version is recent enough.
|
||||
*
|
||||
* @deprecated 19.7.2
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if the installed cURL version is more recent than MINIMUM_CURL_VERSION.
|
||||
*/
|
||||
public function has_recent_curl_version_installed() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.7.2' );
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
/**
|
||||
* Passes if the health check determines that the site is indexable using Ryte.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Ryte_Check extends Health_Check {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Ryte_Runner $runner The object that implements the actual health check.
|
||||
* @param Ryte_Reports $reports The object that generates WordPress-friendly results.
|
||||
*/
|
||||
public function __construct(
|
||||
Ryte_Runner $runner,
|
||||
Ryte_Reports $reports
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a human-readable label for this health check.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string The human-readable label.
|
||||
*/
|
||||
public function get_test_label() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the WordPress-friendly health check result.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The WordPress-friendly health check result.
|
||||
*/
|
||||
protected function get_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
use WPSEO_Shortlinker;
|
||||
|
||||
/**
|
||||
* Presents a set of different messages for the Ryte health check.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Ryte_Reports {
|
||||
|
||||
use Reports_Trait;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Report_Builder_Factory $report_builder_factory The factory for result builder objects.
|
||||
* This class uses the report builder to generate
|
||||
* WordPress-friendly health check results.
|
||||
* @param WPSEO_Shortlinker $shortlinker The WPSEO_Shortlinker object used to generate short
|
||||
* links.
|
||||
*/
|
||||
public function __construct(
|
||||
Report_Builder_Factory $report_builder_factory,
|
||||
WPSEO_Shortlinker $shortlinker
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message for a successful health check.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_success_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the report for a health check result in which the site was not indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_not_indexable_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the report for when the health check was unable to determine indexability.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_unknown_indexability_result() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result for when the health check got an error response from Ryte.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param array $response_error The error response from Ryte.
|
||||
*
|
||||
* @return string[] The message as a WordPress site status report.
|
||||
*/
|
||||
public function get_response_error_result( $response_error ) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -1,114 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Services\Health_Check;
|
||||
|
||||
use WPSEO_Utils;
|
||||
use Yoast\WP\SEO\Integrations\Admin\Ryte_Integration;
|
||||
|
||||
/**
|
||||
* Runs the Ryte health check.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Ryte_Runner implements Runner_Interface {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param Ryte_Integration $ryte The Ryte_Integration object that the health check uses to check indexability.
|
||||
* @param WPSEO_Utils $utils The WPSEO_Utils object used to determine whether the site is in development mode.
|
||||
*/
|
||||
public function __construct(
|
||||
Ryte_Integration $ryte,
|
||||
WPSEO_Utils $utils
|
||||
) {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the health check. Checks if Ryte is accessible and whether the site is indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the site is a live production site that has Ryte enabled.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function should_run() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the site is indexable.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_successful() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the site's indexability is unknown.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool Returns true if the site indexability is unknown even though getting a response from Ryte was
|
||||
* successful.
|
||||
*/
|
||||
public function has_unknown_indexability() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether there was a response error when attempting a request to Ryte.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return bool True if the health check got a valid error response.
|
||||
*/
|
||||
public function got_response_error() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error response is there was one.
|
||||
*
|
||||
* @deprecated 19.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function get_error_response() {
|
||||
\_deprecated_function( __METHOD__, 'Yoast SEO 19.6' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user