diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 1894173fceb..209babc249b 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -232,10 +232,11 @@ final class WooCommerce { * * 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 */ 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 if ( empty( $request_uri ) ) { return false;