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
This commit is contained in:
parent
edce7b88b5
commit
d13198db3a
|
@ -289,6 +289,8 @@ function is_taxonomy_hierarchical($taxonomy) {
|
||||||
* * If not set, the default is inherited from public.
|
* * If not set, the default is inherited from public.
|
||||||
* - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget.
|
* - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget.
|
||||||
* * If not set, the default is inherited from show_ui.
|
* * 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.
|
* - meta_box_cb - Provide a callback function for the meta box display.
|
||||||
* * If not set, defaults to post_categories_meta_box for hierarchical taxonomies
|
* * If not set, defaults to post_categories_meta_box for hierarchical taxonomies
|
||||||
* and post_tags_meta_box for non-hierarchical.
|
* 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_menu' => null,
|
||||||
'show_in_nav_menus' => null,
|
'show_in_nav_menus' => null,
|
||||||
'show_tagcloud' => null,
|
'show_tagcloud' => null,
|
||||||
|
'show_admin_column' => false,
|
||||||
'meta_box_cb' => null,
|
'meta_box_cb' => null,
|
||||||
'capabilities' => array(),
|
'capabilities' => array(),
|
||||||
'rewrite' => true,
|
'rewrite' => true,
|
||||||
|
|
Loading…
Reference in New Issue