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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordpres.../src/reposito...
File: indexable-repository.php
*
[500] Fix | Delete
* @return Indexable The indexable.
[501] Fix | Delete
*/
[502] Fix | Delete
public function upgrade_indexable( $indexable ) {
[503] Fix | Delete
if ( $this->version_manager->indexable_needs_upgrade( $indexable ) ) {
[504] Fix | Delete
$indexable = $this->builder->build( $indexable );
[505] Fix | Delete
}
[506] Fix | Delete
return $indexable;
[507] Fix | Delete
}
[508] Fix | Delete
[509] Fix | Delete
/**
[510] Fix | Delete
* Resets the permalinks of the passed object type and subtype.
[511] Fix | Delete
*
[512] Fix | Delete
* @param string|null $type The type of the indexable. Can be null.
[513] Fix | Delete
* @param string|null $subtype The subtype. Can be null.
[514] Fix | Delete
*
[515] Fix | Delete
* @return int|bool The number of permalinks changed if the query was succesful. False otherwise.
[516] Fix | Delete
*/
[517] Fix | Delete
public function reset_permalink( $type = null, $subtype = null ) {
[518] Fix | Delete
$query = $this->query()->set(
[519] Fix | Delete
[
[520] Fix | Delete
'permalink' => null,
[521] Fix | Delete
'permalink_hash' => null,
[522] Fix | Delete
'version' => 0,
[523] Fix | Delete
]
[524] Fix | Delete
);
[525] Fix | Delete
[526] Fix | Delete
if ( $type !== null ) {
[527] Fix | Delete
$query->where( 'object_type', $type );
[528] Fix | Delete
}
[529] Fix | Delete
[530] Fix | Delete
if ( $type !== null && $subtype !== null ) {
[531] Fix | Delete
$query->where( 'object_sub_type', $subtype );
[532] Fix | Delete
}
[533] Fix | Delete
[534] Fix | Delete
return $query->update_many();
[535] Fix | Delete
}
[536] Fix | Delete
[537] Fix | Delete
/**
[538] Fix | Delete
* Gets the total number of stored indexables.
[539] Fix | Delete
*
[540] Fix | Delete
* @return int The total number of stored indexables.
[541] Fix | Delete
*/
[542] Fix | Delete
public function get_total_number_of_indexables() {
[543] Fix | Delete
return $this->query()->count();
[544] Fix | Delete
}
[545] Fix | Delete
}
[546] Fix | Delete
[547] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function