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/presenta...
File: indexable-error-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_Error_Page_Presentation.
[5] Fix | Delete
*
[6] Fix | Delete
* Presentation object for indexables.
[7] Fix | Delete
*/
[8] Fix | Delete
class Indexable_Error_Page_Presentation extends Indexable_Presentation {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Generates the robots value.
[12] Fix | Delete
*
[13] Fix | Delete
* @return array The robots value.
[14] Fix | Delete
*/
[15] Fix | Delete
public function generate_robots() {
[16] Fix | Delete
$robots = $this->get_base_robots();
[17] Fix | Delete
[18] Fix | Delete
$robots['index'] = 'noindex';
[19] Fix | Delete
[20] Fix | Delete
return $this->filter_robots( $robots );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Generates the title.
[25] Fix | Delete
*
[26] Fix | Delete
* @return string The title.
[27] Fix | Delete
*/
[28] Fix | Delete
public function generate_title() {
[29] Fix | Delete
if ( $this->model->title ) {
[30] Fix | Delete
return $this->model->title;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
return $this->options->get_title_default( 'title-404-wpseo' );
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function