From d13198db3ab8ff3effb2936f73574f8b63baf721 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 7 Jan 2014 02:13:10 +0000 Subject: [PATCH] Add inline documentation for the 'show_admin_column' argument added to `register_taxonomy()` in 3.5. Also adds a 'show_admin_column' value to the defaults array. Props johnbillion. Fixes #26707. Built from https://develop.svn.wordpress.org/trunk@26912 git-svn-id: http://core.svn.wordpress.org/trunk@26793 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 1259d11c5e..95c3d3676e 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -289,6 +289,8 @@ function is_taxonomy_hierarchical($taxonomy) { * * If not set, the default is inherited from public. * - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget. * * If not set, the default is inherited from show_ui. + * - show_admin_column - Whether to display a column for the taxonomy on its post type listing screens. + * * Defaults to false. * - meta_box_cb - Provide a callback function for the meta box display. * * If not set, defaults to post_categories_meta_box for hierarchical taxonomies * and post_tags_meta_box for non-hierarchical. @@ -336,6 +338,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { 'show_in_menu' => null, 'show_in_nav_menus' => null, 'show_tagcloud' => null, + 'show_admin_column' => false, 'meta_box_cb' => null, 'capabilities' => array(), 'rewrite' => true,