[wp-trac] [WordPress Trac] #5809: Updating a term in one taxonomy affects the term in every taxonomy

WordPress Trac noreply at wordpress.org
Wed May 15 08:13:16 UTC 2013


#5809: Updating a term in one taxonomy affects the term in every taxonomy
---------------------------------+-----------------------------
 Reporter:  rmccue               |       Owner:  garyc40
     Type:  defect (bug)         |      Status:  reopened
 Priority:  high                 |   Milestone:  Future Release
Component:  Taxonomy             |     Version:  2.3
 Severity:  major                |  Resolution:
 Keywords:  has-patch 3.7-early  |
---------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:19 LucasMS]:
 > For exemple, the delete_category Hook will pass the TERM ID to the
 hooked function, not the term_taxonomy_ID, which should be the correct.

 Term taxonomy ID is passed as a second argument: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
 includes/taxonomy.php#L1838

 You'll need to specify the number of arguments in your `add_action()`
 call:
 {{{
 add_action( 'delete_category', '...', 10, 3 );
 }}}

 There was, however, an error in the inline docs, fixed in #24343.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/5809#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list