This commit is contained in:
Rachit Bhargava
2024-01-10 11:53:33 -05:00
parent 83d223b0df
commit 054b4fffc9
16481 changed files with 0 additions and 3473867 deletions

View File

@@ -1,38 +0,0 @@
<?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium
*/
/**
* Class WPSEO_Premium_Prominent_Words_Language_Support.
*
* @deprecated 14.7
* @codeCoverageIgnore
*/
class WPSEO_Premium_Prominent_Words_Language_Support {
/**
* List of supported languages.
*
* @var string[]
*/
protected $supported_languages = [ 'en', 'de', 'nl', 'es', 'fr', 'it', 'pt', 'ru', 'pl', 'sv', 'id' ];
/**
* Returns whether the current language is supported for the link suggestions.
*
* @deprecated 14.7
* @codeCoverageIgnore
*
* @param string $language The language to check for.
*
* @return bool Whether the current language is supported for the link suggestions.
*/
public function is_language_supported( $language ) {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.7' );
return in_array( $language, $this->supported_languages, true );
}
}

View File

@@ -1,81 +0,0 @@
<?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium
*/
_deprecated_file( __FILE__, 'WPSEO Premium 14.5' );
/**
* Registers the endpoint for the prominent words recalculation to WordPress.
*/
class WPSEO_Premium_Prominent_Words_Recalculation_Endpoint implements WPSEO_WordPress_Integration {
/**
* The REST API namespace.
*
* @var string
*/
const REST_NAMESPACE = 'yoast/v1';
/**
* The REST API endpoint.
*
* @var string
*/
const ENDPOINT_QUERY = 'complete_recalculation';
/**
* The capability needed to retrieve the recalculation data.
*
* @var string
*/
const CAPABILITY_RETRIEVE = 'edit_posts';
/**
* WPSEO_Premium_Prominent_Words_Recalculation_Endpoint constructor.
*
* @deprecated 14.5
* @codeCoverageIgnore
*
* @param WPSEO_Premium_Prominent_Words_Recalculation_Service $service Unused. The service to handle the requests to the endpoint.
*/
public function __construct( WPSEO_Premium_Prominent_Words_Recalculation_Service $service ) {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Registers all hooks to WordPress.
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public function register_hooks() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Register the REST endpoint to WordPress.
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public function register() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Determines if the current user is allowed to use this endpoint.
*
* @deprecated 14.5
* @codeCoverageIgnore
*
* @return bool
*/
public function can_retrieve_data() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
return current_user_can( self::CAPABILITY_RETRIEVE );
}
}

View File

@@ -1,86 +0,0 @@
<?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium
*/
_deprecated_file( __FILE__, 'WPSEO Premium 14.5' );
/**
* Handles adding site wide analysis UI to the WordPress admin.
*/
class WPSEO_Premium_Prominent_Words_Recalculation_Notifier implements WPSEO_WordPress_Integration {
const NOTIFICATION_ID = 'wpseo-premium-prominent-words-recalculate';
const UNINDEXED_THRESHOLD = 10;
/**
* Registers all hooks to WordPress
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public function register_hooks() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Removes the notification when it is set and the amount of unindexed items is lower than the threshold.
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public function cleanup_notification() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Adds the notification when it isn't set already and the amount of unindexed items is greater than the set.
* threshold.
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public function manage_notification() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Handles the option change to make sure the notification will be removed when link suggestions are disabled.
*
* @deprecated 14.5
* @codeCoverageIgnore
*
* @param mixed $old_value The old value.
* @param mixed $new_value The new value.
*/
public function handle_option_change( $old_value, $new_value ) {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
/**
* Checks if the notification has been set already.
*
* @deprecated 14.5
* @codeCoverageIgnore
*
* @return bool True when there is a notification.
*/
public function has_notification() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
return false;
}
/**
* Migration for removing the persistent notification.
*
* @deprecated 14.5
* @codeCoverageIgnore
*/
public static function upgrade_12_8() {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
}
}

View File

@@ -1,30 +0,0 @@
<?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium
*/
_deprecated_file( __FILE__, 'WPSEO Premium 14.5' );
/**
* Represents the service for the recalculation.
*/
class WPSEO_Premium_Prominent_Words_Recalculation_Service {
/**
* Removes the recalculation notification.
*
* @deprecated 14.5
* @codeCoverageIgnore
*
* @param WP_REST_Request $request The current request. Unused.
*
* @return WP_REST_Response The response to give.
*/
public function remove_notification( WP_REST_Request $request ) {
_deprecated_function( __METHOD__, 'WPSEO Premium 14.5' );
return new WP_REST_Response( '1' );
}
}