warfare-plugins/social-warfare

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()(oramp_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 thewpaction means it will not have access toWP_Queryand the queried object to determine if it is an AMP response, thus neither theamp_skip_post()filter nor the AMP enabled toggle will be considered. It appears the plugin with slugsocial-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).