Updated todo to use the common format.

This commit is contained in:
Peter Fabian 2019-01-28 13:13:12 +01:00
parent 33584e767f
commit dda4cab70c
1 changed files with 2 additions and 1 deletions

View File

@ -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;