[wp-trac] [WordPress Trac] #18109: is_singular is being called on _close_comments_for_old_posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 14 08:37:33 UTC 2011
#18109: is_singular is being called on _close_comments_for_old_posts
--------------------------+-----------------------------
Reporter: luis.ferro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.2
Severity: normal | Keywords:
--------------------------+-----------------------------
wp-includes/comment.php (as of version 3.2.1)
Line 1965 calls for is_singular when on certain situations, the query was
not yet performed, generating the following error:
Notice: is_singular was called incorrectly. 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.) wp-includes/functions.php on line 3501
The message pointing to functions.php is not very helpful either, but
nothing that a debug_backtrace doesn't sort out.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18109>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list