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-home-page-presentation.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presentations;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Class Indexable_Home_Page_Presentation.
[5] Fix | Delete
*
[6] Fix | Delete
* Presentation object for indexables.
[7] Fix | Delete
*/
[8] Fix | Delete
class Indexable_Home_Page_Presentation extends Indexable_Presentation {
[9] Fix | Delete
[10] Fix | Delete
use Archive_Adjacent;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Generates the canonical.
[14] Fix | Delete
*
[15] Fix | Delete
* @return string The canonical.
[16] Fix | Delete
*/
[17] Fix | Delete
public function generate_canonical() {
[18] Fix | Delete
if ( $this->model->canonical ) {
[19] Fix | Delete
return $this->model->canonical;
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
if ( ! $this->permalink ) {
[23] Fix | Delete
return '';
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
$current_page = $this->pagination->get_current_archive_page_number();
[27] Fix | Delete
if ( $current_page > 1 ) {
[28] Fix | Delete
return $this->pagination->get_paginated_url( $this->permalink, $current_page );
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
return $this->permalink;
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Generates the meta description.
[36] Fix | Delete
*
[37] Fix | Delete
* @return string The meta description.
[38] Fix | Delete
*/
[39] Fix | Delete
public function generate_meta_description() {
[40] Fix | Delete
if ( $this->model->description ) {
[41] Fix | Delete
return $this->model->description;
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
return $this->options->get( 'metadesc-home-wpseo' );
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Generates the title.
[49] Fix | Delete
*
[50] Fix | Delete
* @return string The title.
[51] Fix | Delete
*/
[52] Fix | Delete
public function generate_title() {
[53] Fix | Delete
if ( $this->model->title ) {
[54] Fix | Delete
return $this->model->title;
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
return $this->options->get_title_default( 'title-home-wpseo' );
[58] Fix | Delete
}
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function