From dda4cab70c6b6259d8cf3c34b6c4224f5e68fb4f Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 28 Jan 2019 13:13:12 +0100 Subject: [PATCH] Updated todo to use the common format. --- includes/class-woocommerce.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;