Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wordpres.../src/introduc.../applicat...
File: user-allowed-trait.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Introductions\Application;
[2] Fix | Delete
[3] Fix | Delete
trait User_Allowed_Trait {
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Determines whether the user has the required capabilities.
[7] Fix | Delete
*
[8] Fix | Delete
* @param string[] $capabilities The required capabilities.
[9] Fix | Delete
*
[10] Fix | Delete
* @return bool Whether the user has the required capabilities.
[11] Fix | Delete
*/
[12] Fix | Delete
private function is_user_allowed( $capabilities ) {
[13] Fix | Delete
foreach ( $capabilities as $capability ) {
[14] Fix | Delete
if ( ! \current_user_can( $capability ) ) {
[15] Fix | Delete
return false;
[16] Fix | Delete
}
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
return true;
[20] Fix | Delete
}
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function