[wp-trac] [WordPress Trac] #45698: `get_{$taxonomy}` filter misfires when `$taxonomy` parameter is omitted

WordPress Trac noreply at wordpress.org
Wed Dec 19 03:48:04 UTC 2018


#45698: `get_{$taxonomy}` filter misfires when `$taxonomy` parameter is omitted
--------------------------+---------------------------
 Reporter:  dlh           |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.1
Component:  Taxonomy      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:  (none) => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44325" 44325]:
 {{{
 #!CommitTicketReference repository="" revision="44325"
 Ensure that taxonomy name passed to `get_term()` filters is non-empty.

 Since [34997], the `$taxonomy` parameter of `get_term()` has been
 optional. This created cases where the `$taxonomy` parameter, used
 to concatenate names for some filters and passed as a parameter to
 others, would be empty. This changeset ensures that it's never
 empty by falling back on the `taxonomy` of the located term.

 Props dlh.
 Fixes #45698.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45698#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list