| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin |
| 6 |
*/ |
| 7 |
|
| 8 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated. |
| 9 |
|
| 10 |
/** |
| 11 |
* Represents the values for a single Yoast Premium extension plugin. |
| 12 |
*/ |
| 13 |
class WPSEO_License_Page_Manager implements WPSEO_WordPress_Integration { |
| 14 |
|
| 15 |
/** |
| 16 |
* Version number for License Page Manager. |
| 17 |
* |
| 18 |
* @var string |
| 19 |
*/ |
| 20 |
const VERSION_BACKWARDS_COMPATIBILITY = '2'; |
| 21 |
|
| 22 |
/** |
| 23 |
* Registers all hooks to WordPress. |
| 24 |
* |
| 25 |
* @deprecated 15.4 |
| 26 |
* @codeCoverageIgnore |
| 27 |
*/ |
| 28 |
public function register_hooks() { |
| 29 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* Removes the faulty set notifications. |
| 34 |
* |
| 35 |
* @deprecated 15.4 |
| 36 |
* @codeCoverageIgnore |
| 37 |
*/ |
| 38 |
public function remove_faulty_notifications() { |
| 39 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* Handles the response. |
| 44 |
* |
| 45 |
* @deprecated 15.4 |
| 46 |
* @codeCoverageIgnore |
| 47 |
* |
| 48 |
* @param array $response HTTP response. |
| 49 |
* @param array $request_arguments HTTP request arguments. Unused. |
| 50 |
* @param string $url The request URL. |
| 51 |
* |
| 52 |
* @return array The response array. |
| 53 |
*/ |
| 54 |
public function handle_response( array $response, $request_arguments, $url ) { |
| 55 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 56 |
|
| 57 |
return $response; |
| 58 |
} |
| 59 |
|
| 60 |
/** |
| 61 |
* Returns the license page to use based on the version number. |
| 62 |
* |
| 63 |
* @deprecated 15.4 |
| 64 |
* @codeCoverageIgnore |
| 65 |
* |
| 66 |
* @return string The page to use. |
| 67 |
*/ |
| 68 |
public function get_license_page() { |
| 69 |
_deprecated_function( __METHOD__, '15.4' ); |
| 70 |
|
| 71 |
return 'licenses'; |
| 72 |
} |
| 73 |
|
| 74 |
/** |
| 75 |
* Validates the extensions and show a notice for the invalid extensions. |
| 76 |
* |
| 77 |
* @deprecated 15.4 |
| 78 |
* @codeCoverageIgnore |
| 79 |
*/ |
| 80 |
public function validate_extensions() { |
| 81 |
_deprecated_function( __METHOD__, '15.4' ); |
| 82 |
} |
| 83 |
} |
| 84 |
// phpcs:enable |
| 85 |
|