• Resolved 10sexyapples

    (@10sexyapples)


    Just wanted to report that I’m getting this notification of incorrect use of is_author.

    Log Deprecated Notices is stating that:

    “Conditional query tags do not work before the query is run. Before then, they always return false.-This message was added in version 3.1.”

    However, my function does return true. It is being used with pre_get_posts in order to make the author.php page return only two custom post types.

    There are several other notices with this error regarding is_feed and is_search conditionals … the is_feed conditional is being used to delay feeds and the is_search is used by Relevanssi. Both appear to also be working without issue.

    Should there be some additional logic added to determine if this conditionals truly are being used incorrectly, should I just ignore them or am I missing something here that I should change in my code?

    Any advice welcome ??

    https://www.ads-software.com/extend/plugins/log-deprecated-notices/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Log Deprecated Notices] Incorrect Use of is_author()’ is closed to new replies.