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/presente.../twitter
File: card-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters\Twitter;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Presentations\Indexable_Presentation;
[4] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Presenter class for the Twitter Card tag.
[8] Fix | Delete
*/
[9] Fix | Delete
class Card_Presenter extends Abstract_Indexable_Tag_Presenter {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* The tag key name.
[13] Fix | Delete
*
[14] Fix | Delete
* @var string
[15] Fix | Delete
*/
[16] Fix | Delete
protected $key = 'twitter:card';
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Runs the card type through the `wpseo_twitter_card_type` filter.
[20] Fix | Delete
*
[21] Fix | Delete
* @return string The filtered card type.
[22] Fix | Delete
*/
[23] Fix | Delete
public function get() {
[24] Fix | Delete
/**
[25] Fix | Delete
* Filter: 'wpseo_twitter_card_type' - Allow changing the Twitter card type.
[26] Fix | Delete
*
[27] Fix | Delete
* @param string $card_type The card type.
[28] Fix | Delete
* @param Indexable_Presentation $presentation The presentation of an indexable.
[29] Fix | Delete
*/
[30] Fix | Delete
return \trim( \apply_filters( 'wpseo_twitter_card_type', $this->presentation->twitter_card, $this->presentation ) );
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function