[wp-trac] [WordPress Trac] #26240: Allow get_comments_number() to accept post object
WordPress Trac
noreply at wordpress.org
Thu Jan 9 15:12:07 UTC 2014
#26240: Allow get_comments_number() to accept post object
--------------------------+------------------------------
Reporter: coffee2code | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by JanHenkG):
The fix of coffee2code also worked for me, I kept this fix unchanged in
the files I attached. The changes I made are:
- Created separate patch files for the fix itself and the tests.
- Refactored the tests a bit, for example I removed the use of the
$post_id member variable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26240#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list