[wp-trac] [WordPress Trac] #26240: Allow get_comments_number() to accept post object
WordPress Trac
noreply at wordpress.org
Thu May 29 16:55:24 UTC 2014
#26240: Allow get_comments_number() to accept post object
--------------------------+---------------------------
Reporter: coffee2code | Owner: DrewAPicture
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs
--------------------------+---------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => has-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
This test currently fails:
{{{
1) Tests_Comment_Template::test_get_comments_number
Trying to get property of non-object
S:\home\wordpress\develop\src\wp-includes\comment-template.php:701
S:\home\wordpress\develop\tests\phpunit\tests\comment\template.php:10
}}}
[attachment:26240.3.diff] fixes it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26240#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list