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/clone/wp-conte.../plugins/wordpres.../src/introduc.../applicat...
File: current-page-trait.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Introductions\Application;
[2] Fix | Delete
[3] Fix | Delete
trait Current_Page_Trait {
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Determines whether the current page is applicable.
[7] Fix | Delete
*
[8] Fix | Delete
* @param string[] $pages The applicable pages.
[9] Fix | Delete
*
[10] Fix | Delete
* @return bool Whether the current page is applicable.
[11] Fix | Delete
*/
[12] Fix | Delete
private function is_on_yoast_page( $pages ) {
[13] Fix | Delete
return \in_array( $this->get_page(), $pages, true );
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Determines whether the current page is one of our installation pages.
[18] Fix | Delete
*
[19] Fix | Delete
* @return bool Whether the current page is one of our installation pages.
[20] Fix | Delete
*/
[21] Fix | Delete
private function is_on_installation_page() {
[22] Fix | Delete
return $this->is_on_yoast_page( [ 'wpseo_installation_successful_free', 'wpseo_installation_successful' ] );
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* Retrieve the page variable.
[27] Fix | Delete
*
[28] Fix | Delete
* Note: the result is not safe to use in anything than strict comparisons!
[29] Fix | Delete
*
[30] Fix | Delete
* @return string The page variable.
[31] Fix | Delete
*/
[32] Fix | Delete
private function get_page() {
[33] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
[34] Fix | Delete
if ( isset( $_GET['page'] ) && \is_string( $_GET['page'] ) ) {
[35] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, only using it in strict comparison.
[36] Fix | Delete
return \wp_unslash( $_GET['page'] );
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
return '';
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function