[wp-trac] [WordPress Trac] #38765: Argument in registered_taxonomy hook is lost.

WordPress Trac noreply at wordpress.org
Wed Nov 16 08:01:32 UTC 2016


#38765: Argument in registered_taxonomy hook is lost.
--------------------------+-------------------------
 Reporter:  Toro_Unit     |       Owner:  swissspidy
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-------------------------

Comment (by Toro_Unit):

 @swissspidy

 I also agree with your idea.

 Plugin developers need to implement the code.

 {{{#!php
 <?php
 add_action( 'registered_taxonomy', 'my_registered_taxonomy', 10, 3 );
 function my_registered_taxonomy( $taxonomy, $object_type, $args ) {
         $args = (array) $args; /* for Compatibility */

         /* code... */

 }
 }}}


 What do you think about compatibility breaking?

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


More information about the wp-trac mailing list