[wp-trac] [WordPress Trac] #42209: register_taxonomy with a non-sequential array index of post_types causes /wp-json/wp/v2/taxonomies to return an object not an array
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Oct 17 14:00:17 UTC 2017
    
    
  
#42209: register_taxonomy with a non-sequential array index of post_types causes
/wp-json/wp/v2/taxonomies to return an object not an array
--------------------------------------+------------------------------
 Reporter:  spectacula                |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  4.8.2
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+------------------------------
Changes (by birgire):
 * keywords:   => has-unit-tests has-patch
Comment:
 [attachment:42209.diff] adds {{{array_values()}}} for the object type
 array in {{{WP_Taxonomy::set_props()}}}.
 Test included.
 @spectacula Did you have something like this in mind?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42209#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list