Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/presente...
File: robots-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Presenter class for the robots output.
[5] Fix | Delete
*/
[6] Fix | Delete
class Robots_Presenter extends Abstract_Indexable_Presenter {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* The tag key name.
[10] Fix | Delete
*
[11] Fix | Delete
* @var string
[12] Fix | Delete
*/
[13] Fix | Delete
protected $key = 'robots';
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Returns the robots output.
[17] Fix | Delete
*
[18] Fix | Delete
* @return string The robots output tag.
[19] Fix | Delete
*/
[20] Fix | Delete
public function present() {
[21] Fix | Delete
$robots = \implode( ', ', $this->get() );
[22] Fix | Delete
[23] Fix | Delete
if ( \is_string( $robots ) && $robots !== '' ) {
[24] Fix | Delete
return \sprintf( '<meta name="robots" content="%s" />', \esc_attr( $robots ) );
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
return '';
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Gets the raw value of a presentation.
[32] Fix | Delete
*
[33] Fix | Delete
* @return array The raw value.
[34] Fix | Delete
*/
[35] Fix | Delete
public function get() {
[36] Fix | Delete
return $this->presentation->robots;
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function