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/clone/wp-conte.../plugins/wordpres.../src/routes
File: abstract-indexation-route.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Routes;
[2] Fix | Delete
[3] Fix | Delete
use WP_REST_Response;
[4] Fix | Delete
use Yoast\WP\SEO\Actions\Indexing\Indexation_Action_Interface;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Abstract_Indexation_Route class.
[8] Fix | Delete
*
[9] Fix | Delete
* Reindexing route for indexables.
[10] Fix | Delete
*/
[11] Fix | Delete
abstract class Abstract_Indexation_Route extends Abstract_Action_Route {
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Runs an indexing action and returns the response.
[15] Fix | Delete
*
[16] Fix | Delete
* @param Indexation_Action_Interface $indexation_action The indexing action.
[17] Fix | Delete
* @param string $url The url of the indexing route.
[18] Fix | Delete
*
[19] Fix | Delete
* @return WP_REST_Response The response.
[20] Fix | Delete
*/
[21] Fix | Delete
protected function run_indexation_action( Indexation_Action_Interface $indexation_action, $url ) {
[22] Fix | Delete
$indexables = $indexation_action->index();
[23] Fix | Delete
[24] Fix | Delete
$next_url = false;
[25] Fix | Delete
if ( \count( $indexables ) >= $indexation_action->get_limit() ) {
[26] Fix | Delete
$next_url = \rest_url( $url );
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
return $this->respond_with( $indexables, $next_url );
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function