[wp-trac] [WordPress Trac] #33485: $deleted_term in wp_delete_term() has incorrect `count` value
WordPress Trac
noreply at wordpress.org
Sat Aug 22 19:42:32 UTC 2015
#33485: $deleted_term in wp_delete_term() has incorrect `count` value
--------------------------------------+--------------------------
Reporter: danielbachhuber | Owner: nicholas_io
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+--------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"33711"]:
{{{
#!CommitTicketReference repository="" revision="33711"
In `wp_delete_term()`, the `$deleted_term` object passed to filters should
be generated before term relationships are deleted.
This allows the `count` property to reflect the pre-delete state of
affairs,
rather than always being 0.
Props nicholas_io.
Fixes #33485.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33485#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list