[wp-trac] [WordPress Trac] #42021: _update_posts_count_on_transition_post_status firing for incorrect post types
WordPress Trac
noreply at wordpress.org
Fri Sep 29 16:54:11 UTC 2017
#42021: _update_posts_count_on_transition_post_status firing for incorrect post
types
----------------------------------------+------------------------------
Reporter: sboisvert | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: multisite
----------------------------------------+------------------------------
Changes (by spacedmonkey):
* keywords: has-patch => has-patch needs-unit-tests
Comment:
Added some improvements. For backward compatiblity, I added null to the
`$posts` param to make sure if anyone is calling the function in there own
code there is no breakage.
Also used `get_post_type()` as it always returns something.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42021#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list