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
This commit is contained in:
Andrew Nacin 2013-07-28 23:01:56 +00:00
parent 55e956dd67
commit 6f3d2e4e93

View File

@ -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);