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/models
File: indexable-extension.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Models;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\Lib\Model;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Abstract class for indexable extensions.
[7] Fix | Delete
*/
[8] Fix | Delete
abstract class Indexable_Extension extends Model {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Holds the Indexable instance.
[12] Fix | Delete
*
[13] Fix | Delete
* @var Indexable
[14] Fix | Delete
*/
[15] Fix | Delete
protected $indexable = null;
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Returns the indexable this extension belongs to.
[19] Fix | Delete
*
[20] Fix | Delete
* @return Indexable The indexable.
[21] Fix | Delete
*/
[22] Fix | Delete
public function indexable() {
[23] Fix | Delete
if ( $this->indexable === null ) {
[24] Fix | Delete
$this->indexable = $this->belongs_to( 'Indexable', 'indexable_id', 'id' )->find_one();
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
return $this->indexable;
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function