Updated todo to use the common format.
This commit is contained in:
parent
33584e767f
commit
dda4cab70c
|
@ -232,10 +232,11 @@ final class WooCommerce {
|
||||||
*
|
*
|
||||||
* Legacy REST requests should still run some extra code for backwards compatibility.
|
* Legacy REST requests should still run some extra code for backwards compatibility.
|
||||||
*
|
*
|
||||||
|
* @todo: replace this function once core WP function is available: https://core.trac.wordpress.org/ticket/42061.
|
||||||
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private static function is_rest_api_request() {
|
private static function is_rest_api_request() {
|
||||||
// TODO: replace this function once core WP function is available: https://core.trac.wordpress.org/ticket/42061.
|
|
||||||
$request_uri = $_SERVER['REQUEST_URI']; // @codingStandardsIgnoreLine
|
$request_uri = $_SERVER['REQUEST_URI']; // @codingStandardsIgnoreLine
|
||||||
if ( empty( $request_uri ) ) {
|
if ( empty( $request_uri ) ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue