Function amp_is_available was called incorrectly.
-
Function amp_is_available was called incorrectly.
amp_is_available()
(oramp_is_request()
, formerlyis_amp_endpoint()
) was called too early and so it will not work properly. WordPress is currently doing thefixedtoc_frontend_init_hook
hook. Calling this function before thewp
action means it will not have access toWP_Query
and 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 slugfixed-toc
is responsible; please contact the author. (This message was added in version 2.0.0.)+Our site Turksem.com is experiencing the above problem. This problem is causing the site to slow down throughout. What should we do?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.