Make WordPress Core

Changeset 38030


Ignore:
Timestamp:
07/10/2016 05:40:11 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: The $labels property in WP_Post_Type is of type object as returned from get_post_type_labels(), not an array.

Props swissspidy.
See #36217.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-post-type.php

    r37890 r38030  
    3333
    3434    /**
    35      * An array of labels for this post type.
     35     * Labels object for this post type.
    3636     *
    3737     * If not set, post labels are inherited for non-hierarchical types
     
    4242     * @since 4.6.0
    4343     * @access public
    44      * @var array $labels
     44     * @var object $labels
    4545     */
    4646    public $labels;
Note: See TracChangeset for help on using the changeset viewer.