[wp-trac] [WordPress Trac] #58404: Add pre_update_term filter hook

WordPress Trac noreply at wordpress.org
Mon Jun 26 22:34:19 UTC 2023


#58404: Add pre_update_term filter hook
-------------------------------------------------+-------------------------
 Reporter:  kobi1                                |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Looking at 58404.patch, why is the filter before the `if ( is_wp_error(
 $term ) )`? I.e. should it be filtering erroneous updates for non-existing
 terms? Seems not?

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


More information about the wp-trac mailing list