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

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

 `ArrayAccess` knocks out the use of `array_merge()` and a bunch of other
 array functionality. As that's the raison d'etre for `$args` arrays, I'm
 hesitant to do anything other than cast to an array before passing to the
 filter. The backcompat implications are too big.

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


More information about the wp-trac mailing list