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.../front-en...
File: backwards-compatibility.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations\Front_End;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\Front_End_Conditional;
[4] Fix | Delete
use Yoast\WP\SEO\Helpers\Options_Helper;
[5] Fix | Delete
use Yoast\WP\SEO\Integrations\Integration_Interface;
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Adds actions that were previously called and are now deprecated.
[9] Fix | Delete
*/
[10] Fix | Delete
class Backwards_Compatibility implements Integration_Interface {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Represents the options helper.
[14] Fix | Delete
*
[15] Fix | Delete
* @var Options_Helper
[16] Fix | Delete
*/
[17] Fix | Delete
protected $options;
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Returns the conditionals based in which this loadable should be active.
[21] Fix | Delete
*
[22] Fix | Delete
* @return array
[23] Fix | Delete
*/
[24] Fix | Delete
public static function get_conditionals() {
[25] Fix | Delete
return [ Front_End_Conditional::class ];
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Backwards_Compatibility constructor
[30] Fix | Delete
*
[31] Fix | Delete
* @param Options_Helper $options The options helper.
[32] Fix | Delete
*/
[33] Fix | Delete
public function __construct( Options_Helper $options ) {
[34] Fix | Delete
$this->options = $options;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* Initializes the integration.
[39] Fix | Delete
*
[40] Fix | Delete
* This is the place to register hooks and filters.
[41] Fix | Delete
*
[42] Fix | Delete
* @return void
[43] Fix | Delete
*/
[44] Fix | Delete
public function register_hooks() {
[45] Fix | Delete
if ( $this->options->get( 'opengraph' ) === true ) {
[46] Fix | Delete
\add_action( 'wpseo_head', [ $this, 'call_wpseo_opengraph' ], 30 );
[47] Fix | Delete
}
[48] Fix | Delete
if ( $this->options->get( 'twitter' ) === true && \apply_filters( 'wpseo_output_twitter_card', true ) !== false ) {
[49] Fix | Delete
\add_action( 'wpseo_head', [ $this, 'call_wpseo_twitter' ], 40 );
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* Calls the old wpseo_opengraph action.
[55] Fix | Delete
*
[56] Fix | Delete
* @return void
[57] Fix | Delete
*/
[58] Fix | Delete
public function call_wpseo_opengraph() {
[59] Fix | Delete
\do_action_deprecated( 'wpseo_opengraph', [], '14.0', 'wpseo_frontend_presenters' );
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* Calls the old wpseo_twitter action.
[64] Fix | Delete
*
[65] Fix | Delete
* @return void
[66] Fix | Delete
*/
[67] Fix | Delete
public function call_wpseo_twitter() {
[68] Fix | Delete
\do_action_deprecated( 'wpseo_twitter', [], '14.0', 'wpseo_frontend_presenters' );
[69] Fix | Delete
}
[70] Fix | Delete
}
[71] Fix | Delete
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function