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.../httpdocs/wp-conte.../plugins/wordpres.../src/conditio.../admin
File: post-conditional.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Conditionals\Admin;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\Conditional;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Conditional that is only met when on a post edit or new post page.
[7] Fix | Delete
*/
[8] Fix | Delete
class Post_Conditional implements Conditional {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Returns whether or not this conditional is met.
[12] Fix | Delete
*
[13] Fix | Delete
* @return bool Whether or not the conditional is met.
[14] Fix | Delete
*/
[15] Fix | Delete
public function is_met() {
[16] Fix | Delete
global $pagenow;
[17] Fix | Delete
[18] Fix | Delete
// Current page is the creation of a new post (type, i.e. post, page, custom post or attachment).
[19] Fix | Delete
if ( $pagenow === 'post-new.php' ) {
[20] Fix | Delete
return true;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
// Current page is the edit page of an existing post (type, i.e. post, page, custom post or attachment).
[24] Fix | Delete
if ( $pagenow === 'post.php' ) {
[25] Fix | Delete
return true;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
return false;
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function