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/conditio.../third-pa...
File: elementor-edit-conditional.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Conditionals\Third_Party;
[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 an Elementor edit page or when the current
[7] Fix | Delete
* request is an ajax request for saving our post meta data.
[8] Fix | Delete
*/
[9] Fix | Delete
class Elementor_Edit_Conditional implements Conditional {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Returns whether this conditional is met.
[13] Fix | Delete
*
[14] Fix | Delete
* @return bool Whether the conditional is met.
[15] Fix | Delete
*/
[16] Fix | Delete
public function is_met() {
[17] Fix | Delete
global $pagenow;
[18] Fix | Delete
[19] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
[20] Fix | Delete
if ( isset( $_GET['action'] ) && \is_string( $_GET['action'] ) ) {
[21] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
[22] Fix | Delete
$get_action = \wp_unslash( $_GET['action'] );
[23] Fix | Delete
if ( $pagenow === 'post.php' && $get_action === 'elementor' ) {
[24] Fix | Delete
return true;
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reason: We are not processing form information.
[29] Fix | Delete
if ( isset( $_POST['action'] ) && \is_string( $_POST['action'] ) ) {
[30] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
[31] Fix | Delete
$post_action = \wp_unslash( $_POST['action'] );
[32] Fix | Delete
return \wp_doing_ajax() && $post_action === 'wpseo_elementor_save';
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
return false;
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function