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

WordPress Trac noreply at wordpress.org
Wed Nov 16 22:14: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 peterwilsoncc):

 In [attachment:38765.6.diff]:

 * makes the arguments used to register the taxonomy available as a
 property
 * passed arguments property to the `registered_taxonomy` hook

 Made the args a property to avoid the need to recursively cast to an
 array.

 [https://gist.github.com/peterwilsoncc/c3b86135c5cc1db49f227408eb4c1f5d
 diff of 4.6.1 arguments and 4.7 arguments] passed to the hook.

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


More information about the wp-trac mailing list