[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 12:08:42 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 | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Changes (by kawauso):
* keywords: => has-patch needs-testing
Comment:
Attached patch uses the `is_singular()` method of the query object that
triggered 'the_posts' hook rather than the function which relies on
`$wp_query`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18109#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list