Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/helpers
File: request-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* A helper object for the request state.
[5] Fix | Delete
*/
[6] Fix | Delete
class Request_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Checks if the current request is a REST request.
[10] Fix | Delete
*
[11] Fix | Delete
* @return bool True when the current request is a REST request.
[12] Fix | Delete
*/
[13] Fix | Delete
public function is_rest_request() {
[14] Fix | Delete
return \defined( 'REST_REQUEST' ) && \REST_REQUEST === true;
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function