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/wp-conte.../plugins/wordpres.../src/presenta...
File: indexable-static-posts-page-presentation.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presentations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Helpers\Pagination_Helper;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class Indexable_Static_Posts_Page_Presentation.
[7] Fix | Delete
*
[8] Fix | Delete
* Presentation object for indexables.
[9] Fix | Delete
*/
[10] Fix | Delete
class Indexable_Static_Posts_Page_Presentation extends Indexable_Post_Type_Presentation {
[11] Fix | Delete
[12] Fix | Delete
use Archive_Adjacent;
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* The pagination helper.
[16] Fix | Delete
*
[17] Fix | Delete
* @var Pagination_Helper
[18] Fix | Delete
*/
[19] Fix | Delete
protected $pagination;
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Generates the canonical.
[23] Fix | Delete
*
[24] Fix | Delete
* @return string The canonical.
[25] Fix | Delete
*/
[26] Fix | Delete
public function generate_canonical() {
[27] Fix | Delete
if ( $this->model->canonical ) {
[28] Fix | Delete
return $this->model->canonical;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
$current_page = $this->pagination->get_current_archive_page_number();
[32] Fix | Delete
[33] Fix | Delete
if ( $current_page > 1 ) {
[34] Fix | Delete
return $this->pagination->get_paginated_url( $this->permalink, $current_page );
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
return $this->permalink;
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Generates the Open Graph URL.
[42] Fix | Delete
*
[43] Fix | Delete
* @return string The Open Graph URL.
[44] Fix | Delete
*/
[45] Fix | Delete
public function generate_open_graph_url() {
[46] Fix | Delete
return $this->permalink;
[47] Fix | Delete
}
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function