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/integrat...
File: duplicate-post-integration.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\No_Conditionals;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class to manage the integration with Yoast Duplicate Post.
[7] Fix | Delete
*/
[8] Fix | Delete
class Duplicate_Post_Integration implements Integration_Interface {
[9] Fix | Delete
[10] Fix | Delete
use No_Conditionals;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Initializes the integration.
[14] Fix | Delete
*
[15] Fix | Delete
* This is the place to register hooks and filters.
[16] Fix | Delete
*
[17] Fix | Delete
* @return void
[18] Fix | Delete
*/
[19] Fix | Delete
public function register_hooks() {
[20] Fix | Delete
\add_filter( 'duplicate_post_excludelist_filter', [ $this, 'exclude_zapier_meta' ] );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Filters out the Zapier meta when you copy a post with Yoast Duplicate Post.
[25] Fix | Delete
*
[26] Fix | Delete
* @param array $meta_excludelist The current excludelist of meta fields.
[27] Fix | Delete
*
[28] Fix | Delete
* @return array The updated excludelist.
[29] Fix | Delete
*/
[30] Fix | Delete
public function exclude_zapier_meta( $meta_excludelist ) {
[31] Fix | Delete
$meta_excludelist[] = 'zapier_trigger_sent';
[32] Fix | Delete
return $meta_excludelist;
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function