Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/deprecat.../admin
File: extension-manager.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Represents the class that contains the available extensions for Yoast SEO.
[10] Fix | Delete
*
[11] Fix | Delete
* @deprecated 15.4
[12] Fix | Delete
* @codeCoverageIgnore
[13] Fix | Delete
*/
[14] Fix | Delete
class WPSEO_Extension_Manager {
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Adds an extension to the manager.
[18] Fix | Delete
*
[19] Fix | Delete
* @deprecated 15.4
[20] Fix | Delete
* @codeCoverageIgnore
[21] Fix | Delete
*
[22] Fix | Delete
* @param string $extension_name The extension name.
[23] Fix | Delete
* @param WPSEO_Extension|null $extension The extension value object.
[24] Fix | Delete
*
[25] Fix | Delete
* @return void
[26] Fix | Delete
*/
[27] Fix | Delete
public function add( $extension_name, WPSEO_Extension $extension = null ) {
[28] Fix | Delete
_deprecated_function( __METHOD__, '15.4' );
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* Removes an extension from the manager.
[33] Fix | Delete
*
[34] Fix | Delete
* @deprecated 15.4
[35] Fix | Delete
* @codeCoverageIgnore
[36] Fix | Delete
*
[37] Fix | Delete
* @param string $extension_name The name of the extension to remove.
[38] Fix | Delete
*
[39] Fix | Delete
* @return void
[40] Fix | Delete
*/
[41] Fix | Delete
public function remove( $extension_name ) {
[42] Fix | Delete
_deprecated_function( __METHOD__, '15.4' );
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Returns the extension for the given extension name.
[47] Fix | Delete
*
[48] Fix | Delete
* @deprecated 15.4
[49] Fix | Delete
* @codeCoverageIgnore
[50] Fix | Delete
*
[51] Fix | Delete
* @param string $extension_name The name of the extension to get.
[52] Fix | Delete
*
[53] Fix | Delete
* @return WPSEO_Extension|null The extension object or null when it doesn't exist.
[54] Fix | Delete
*/
[55] Fix | Delete
public function get( $extension_name ) {
[56] Fix | Delete
_deprecated_function( __METHOD__, '15.4' );
[57] Fix | Delete
[58] Fix | Delete
return null;
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
/**
[62] Fix | Delete
* Returns all set extension.
[63] Fix | Delete
*
[64] Fix | Delete
* @deprecated 15.4
[65] Fix | Delete
* @codeCoverageIgnore
[66] Fix | Delete
*
[67] Fix | Delete
* @return WPSEO_Extension[] Array with the extensions.
[68] Fix | Delete
*/
[69] Fix | Delete
public function get_all() {
[70] Fix | Delete
_deprecated_function( __METHOD__, '15.4' );
[71] Fix | Delete
[72] Fix | Delete
return [];
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
/**
[76] Fix | Delete
* Checks if the plugin is activated within My Yoast.
[77] Fix | Delete
*
[78] Fix | Delete
* @deprecated 15.4
[79] Fix | Delete
* @codeCoverageIgnore
[80] Fix | Delete
*
[81] Fix | Delete
* @param string $extension_name The extension name to check.
[82] Fix | Delete
*
[83] Fix | Delete
* @return bool True when the plugin is activated.
[84] Fix | Delete
*/
[85] Fix | Delete
public function is_activated( $extension_name ) {
[86] Fix | Delete
_deprecated_function( __METHOD__, '15.4' );
[87] Fix | Delete
[88] Fix | Delete
return false;
[89] Fix | Delete
}
[90] Fix | Delete
}
[91] Fix | Delete
// phpcs:enable
[92] Fix | Delete
[93] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function