[wp-trac] [WordPress Trac] #16310: get_taxonomy_labels() and _get_custom_object_labels() fail if $object->taxonomy is not array

WordPress Trac noreply at wordpress.org
Sat Sep 21 17:43:15 UTC 2013


#16310: get_taxonomy_labels() and _get_custom_object_labels() fail if
$object->taxonomy is not array
--------------------------+-----------------------------
 Reporter:  foofy         |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.7
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25553"]:
 {{{
 #!CommitTicketReference repository="" revision="25553"
 Add `@access private` to `_get_custom_object_labels()`, which was already
 implied by the dangling underscore. Cast `$labels` to `array` in
 `get_taxonomy_labels()` and `_get_custom_object_labels()`.

 Props nacin, foofy.
 Fixes #16310.
 }}}

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


More information about the wp-trac mailing list