WordPress.org

Ready to get started?Download WordPress

Forums

Log Deprecated Notices
[resolved] Incorrect Use of is_author() (2 posts)

  1. 10sexyapples
    Member
    Posted 2 years ago #

    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 ;-)

    http://wordpress.org/extend/plugins/log-deprecated-notices/

  2. Andrew Nacin
    Lead Developer
    Plugin Author

    Posted 2 years ago #

    This is something that should be reported to the WordPress core Trac: http://core.trac.wordpress.org/newticket.

    Log Deprecated Notices only logs what core reports.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic