Make WordPress Core

Changeset 37885


Ignore:
Timestamp:
06/28/2016 06:41:23 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add a more complete $labels parameter description to the DocBlock for register_post_type().

Directly references get_post_type_labels() for the full list of supported labels.

See #32246.

File:
1 edited

Legend:

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

    r37884 r37885  
    915915 *     @type array       $labels               An array of labels for this post type. If not set, post
    916916 *                                             labels are inherited for non-hierarchical types and page
    917  *                                             labels for hierarchical ones. get_post_type_labels().
     917 *                                             labels for hierarchical ones. See get_post_type_labels() for a full
     918 *                                             list of supported labels.
    918919 *     @type string      $description          A short descriptive summary of what the post type is.
    919920 *                                             Default empty.
Note: See TracChangeset for help on using the changeset viewer.