| 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 class that contains the list of possible extensions for Yoast SEO. |
| 12 |
* |
| 13 |
* @deprecated 15.4 |
| 14 |
* @codeCoverageIgnore |
| 15 |
*/ |
| 16 |
class WPSEO_Extensions { |
| 17 |
|
| 18 |
/** |
| 19 |
* Checks if the plugin has been installed. |
| 20 |
* |
| 21 |
* @deprecated 15.4 |
| 22 |
* @codeCoverageIgnore |
| 23 |
* |
| 24 |
* @param string $extension The name of the plugin to check. |
| 25 |
* |
| 26 |
* @return bool Returns true when installed. |
| 27 |
*/ |
| 28 |
public function is_installed( $extension ) { |
| 29 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 30 |
|
| 31 |
return false; |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* Invalidates the extension by removing its option. |
| 36 |
* |
| 37 |
* @deprecated 15.4 |
| 38 |
* @codeCoverageIgnore |
| 39 |
* |
| 40 |
* @param string $extension The extension to invalidate. |
| 41 |
*/ |
| 42 |
public function invalidate( $extension ) { |
| 43 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Checks if the extension is valid. |
| 48 |
* |
| 49 |
* @deprecated 15.4 |
| 50 |
* @codeCoverageIgnore |
| 51 |
* |
| 52 |
* @param string $extension The extension to get the name for. |
| 53 |
* |
| 54 |
* @return bool Returns true when valid. |
| 55 |
*/ |
| 56 |
public function is_valid( $extension ) { |
| 57 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 58 |
|
| 59 |
return false; |
| 60 |
} |
| 61 |
|
| 62 |
/** |
| 63 |
* Returns the set extensions. |
| 64 |
* |
| 65 |
* @deprecated 15.4 |
| 66 |
* @codeCoverageIgnore |
| 67 |
* |
| 68 |
* @return array All the extension names. |
| 69 |
*/ |
| 70 |
public function get() { |
| 71 |
_deprecated_function( __METHOD__, 'WPSEO 15.4' ); |
| 72 |
|
| 73 |
return []; |
| 74 |
} |
| 75 |
} |
| 76 |
// phpcs:enable |
| 77 |
|