From 2fc50487eafda93044f3040a08e465baa23bfa2b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 7 Jan 2014 02:04:16 +0000 Subject: [PATCH] Improve inline documentation for `add_post_type_support()`. Props philiparthurmoore. Fixes #26683. git-svn-id: https://develop.svn.wordpress.org/trunk@26911 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 04625c3d0f..7c537f9eab 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1555,16 +1555,20 @@ add_action( 'admin_menu', '_add_post_type_submenus' ); /** * Register support of certain features for a post type. * - * All features are directly associated with a functional area of the edit screen, such as the - * editor or a meta box: 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', - * 'excerpt', 'page-attributes', 'thumbnail', and 'custom-fields'. + * All core features are directly associated with a functional area of the edit + * screen, such as the editor or a meta box. Features include: 'title', 'editor', + * 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', + * 'thumbnail', 'custom-fields', and 'post-formats'. * - * Additionally, the 'revisions' feature dictates whether the post type will store revisions, - * and the 'comments' feature dictates whether the comments count will show on the edit screen. + * Additionally, the 'revisions' feature dictates whether the post type will + * store revisions, and the 'comments' feature dictates whether the comments + * count will show on the edit screen. * * @since 3.0.0 - * @param string $post_type The post type for which to add the feature - * @param string|array $feature the feature being added, can be an array of feature strings or a single string + * + * @param string $post_type The post type for which to add the feature. + * @param string|array $feature The feature being added, accpets an array of + * feature strings or a single string. */ function add_post_type_support( $post_type, $feature ) { global $_wp_post_type_features;