amp_is_available was called incorrectly
Closed this issue · 1 comments
See internal # 427316
With debug enabled, getting:
Notice: amp_is_available was called incorrectly.
amp_is_available()(or
amp_is_request(), formerly
is_amp_endpoint()) was called too early and so it will not work properly. WordPress is currently doing the
wp_loadedhook. Calling this function before the
wpaction means it will not have access to
WP_Queryand the queried object to determine if it is an AMP response, thus neither the
amp_skip_post()filter nor the AMP enabled toggle will be considered. It appears the plugin with slug
social-warfare is responsible; please contact the author. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /wp-includes/functions.php on line 5313
@SquanchyMe The issue has been resolved and the fix will be included in the upcoming release (4.4.7).