• You should probably check if a constant is defined before using it. πŸ˜‰

    PHP Notice: Use of undefined constant AMP_QUERY_VAR – assumed ‘AMP_QUERY_VAR’ in wordpress/wp-content/plugins/amp/includes/amp-helper-functions.php on line 42

    js.

Viewing 1 replies (of 1 total)
  • Thread Starter JS Morisset

    (@jsmoriss)

    Also, I don’t think this syntax follows recommended WordPress coding practices…

    
    return false !== get_query_var( AMP_QUERY_VAR, false );
    

    js.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined constant AMP_QUERY_VAR in includes/amp-helper-functions.php’ is closed to new replies.