Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/deprecat.../admin
File: extensions.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 list of possible 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_Extensions {
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Checks if the plugin has been installed.
[18] Fix | Delete
*
[19] Fix | Delete
* @deprecated 15.4
[20] Fix | Delete
* @codeCoverageIgnore
[21] Fix | Delete
*
[22] Fix | Delete
* @param string $extension The name of the plugin to check.
[23] Fix | Delete
*
[24] Fix | Delete
* @return bool Returns true when installed.
[25] Fix | Delete
*/
[26] Fix | Delete
public function is_installed( $extension ) {
[27] Fix | Delete
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
[28] Fix | Delete
[29] Fix | Delete
return false;
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Invalidates the extension by removing its option.
[34] Fix | Delete
*
[35] Fix | Delete
* @deprecated 15.4
[36] Fix | Delete
* @codeCoverageIgnore
[37] Fix | Delete
*
[38] Fix | Delete
* @param string $extension The extension to invalidate.
[39] Fix | Delete
*/
[40] Fix | Delete
public function invalidate( $extension ) {
[41] Fix | Delete
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Checks if the extension is valid.
[46] Fix | Delete
*
[47] Fix | Delete
* @deprecated 15.4
[48] Fix | Delete
* @codeCoverageIgnore
[49] Fix | Delete
*
[50] Fix | Delete
* @param string $extension The extension to get the name for.
[51] Fix | Delete
*
[52] Fix | Delete
* @return bool Returns true when valid.
[53] Fix | Delete
*/
[54] Fix | Delete
public function is_valid( $extension ) {
[55] Fix | Delete
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
[56] Fix | Delete
[57] Fix | Delete
return false;
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Returns the set extensions.
[62] Fix | Delete
*
[63] Fix | Delete
* @deprecated 15.4
[64] Fix | Delete
* @codeCoverageIgnore
[65] Fix | Delete
*
[66] Fix | Delete
* @return array All the extension names.
[67] Fix | Delete
*/
[68] Fix | Delete
public function get() {
[69] Fix | Delete
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
[70] Fix | Delete
[71] Fix | Delete
return [];
[72] Fix | Delete
}
[73] Fix | Delete
}
[74] Fix | Delete
// phpcs:enable
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function