From 730d562648f4e21ca2324a7981fe6f94bc5f49b7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 28 Jun 2016 06:41:23 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37885 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9778634a40..7edde4e42d 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -914,7 +914,8 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * Default is value of $labels['name']. * @type array $labels An array of labels for this post type. If not set, post * labels are inherited for non-hierarchical types and page - * labels for hierarchical ones. get_post_type_labels(). + * labels for hierarchical ones. See get_post_type_labels() for a full + * list of supported labels. * @type string $description A short descriptive summary of what the post type is. * Default empty. * @type bool $public Whether a post type is intended for use publicly either via