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/post.php

    r25312 r25553  
    14741474 *
    14751475 * @since 3.0.0
     1476 * @access private
     1477 *
    14761478 * @param object $post_type_object
    14771479 * @return object object with all the labels as member variables
     
    15071509 */
    15081510function _get_custom_object_labels( $object, $nohier_vs_hier_defaults ) {
     1511    $object->labels = (array) $object->labels;
    15091512
    15101513    if ( isset( $object->label ) && empty( $object->labels['name'] ) )
Note: See TracChangeset for help on using the changeset viewer.