Make WordPress Core


Ignore:
Timestamp:
09/21/2013 05:43:14 PM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r25551 r25553  
    439439
    440440function get_taxonomy_labels( $tax ) {
     441    $tax->labels = (array) $tax->labels;
     442
    441443    if ( isset( $tax->helps ) && empty( $tax->labels['separate_items_with_commas'] ) )
    442444        $tax->labels['separate_items_with_commas'] = $tax->helps;
Note: See TracChangeset for help on using the changeset viewer.