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...
File: rel-next-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Presentations\Indexable_Presentation;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Presenter class for the rel next meta tag.
[7] Fix | Delete
*/
[8] Fix | Delete
class Rel_Next_Presenter extends Abstract_Indexable_Tag_Presenter {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* The tag key name.
[12] Fix | Delete
*
[13] Fix | Delete
* @var string
[14] Fix | Delete
*/
[15] Fix | Delete
protected $key = 'next';
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* The tag format including placeholders.
[19] Fix | Delete
*
[20] Fix | Delete
* @var string
[21] Fix | Delete
*/
[22] Fix | Delete
protected $tag_format = self::LINK_REL_HREF;
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* The method of escaping to use.
[26] Fix | Delete
*
[27] Fix | Delete
* @var string
[28] Fix | Delete
*/
[29] Fix | Delete
protected $escaping = 'url';
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* Returns the rel next meta tag.
[33] Fix | Delete
*
[34] Fix | Delete
* @return string The rel next tag.
[35] Fix | Delete
*/
[36] Fix | Delete
public function present() {
[37] Fix | Delete
$output = parent::present();
[38] Fix | Delete
[39] Fix | Delete
if ( ! empty( $output ) ) {
[40] Fix | Delete
/**
[41] Fix | Delete
* Filter: 'wpseo_next_rel_link' - Allow changing link rel output by Yoast SEO.
[42] Fix | Delete
*
[43] Fix | Delete
* @param string $unsigned The full `<link` element.
[44] Fix | Delete
*/
[45] Fix | Delete
return \apply_filters( 'wpseo_next_rel_link', $output );
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
return '';
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* Run the canonical content through the `wpseo_adjacent_rel_url` filter.
[53] Fix | Delete
*
[54] Fix | Delete
* @return string The filtered adjacent link.
[55] Fix | Delete
*/
[56] Fix | Delete
public function get() {
[57] Fix | Delete
if ( \in_array( 'noindex', $this->presentation->robots, true ) ) {
[58] Fix | Delete
return '';
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
/**
[62] Fix | Delete
* Filter: 'wpseo_adjacent_rel_url' - Allow filtering of the rel next URL put out by Yoast SEO.
[63] Fix | Delete
*
[64] Fix | Delete
* @param string $rel_next The rel next URL.
[65] Fix | Delete
* @param string $rel Link relationship, prev or next.
[66] Fix | Delete
* @param Indexable_Presentation $presentation The presentation of an indexable.
[67] Fix | Delete
*/
[68] Fix | Delete
return (string) \trim( \apply_filters( 'wpseo_adjacent_rel_url', $this->presentation->rel_next, 'next', $this->presentation ) );
[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