[wp-trac] [WordPress Trac] #20633: wp-includes/comment.php:738 - Undefined property: WP_Query::$comments
WordPress Trac
noreply at wordpress.org
Wed Jan 29 05:11:23 UTC 2014
#20633: wp-includes/comment.php:738 - Undefined property: WP_Query::$comments
--------------------------------------------------+--------------------
Reporter: markjaquith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Comments | Version: 3.3.2
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests 3.8-early | Focuses:
--------------------------------------------------+--------------------
Comment (by wonderboymusic):
[attachment:20633.2.diff 20633.2.diff] updates the proposed Unit Tests to
actually trigger the error described in the ticket. The portion Mark
provided fixes them. I also removed the `$wp_query` logic in
`setUp/tearDown` - most of the tests themselves override the entirety of
`$wp_query` by running new queries. `$wp_query` is not expected to be
maintained between tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20633#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list