Opened 14 years ago
Closed 13 years ago
#18109 closed defect (bug) (fixed)
is_singular is being called on _close_comments_for_old_posts
Reported by: | luis.ferro | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Query | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Use the query object method instead