From 6f3d2e4e93a3c780fc0c9f30f55771053f4f20df Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 28 Jul 2013 23:01:56 +0000 Subject: [PATCH] Add description argument to register_taxonomy(). props aaronholbrook. fixes #24808. git-svn-id: https://develop.svn.wordpress.org/trunk@24833 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index c191fcd41d..955369e228 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -300,6 +300,8 @@ function is_taxonomy_hierarchical($taxonomy) { * * labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones. * + * description - A short descriptive summary of what the taxonomy is for. Defaults to blank. + * * @package WordPress * @subpackage Taxonomy * @since 2.3.0 @@ -329,6 +331,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { 'labels' => array(), 'capabilities' => array(), 'show_in_nav_menus' => null, + 'description' => '', ); $args = wp_parse_args($args, $defaults);