mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
nav_menu and post_format taxonomies should not be public. fixes #15107
git-svn-id: http://svn.automattic.com/wordpress/trunk@15818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3706be0956
commit
3df9f849ce
@ -37,6 +37,7 @@ function create_initial_taxonomies() {
|
|||||||
) );
|
) );
|
||||||
|
|
||||||
register_taxonomy( 'nav_menu', 'nav_menu_item', array(
|
register_taxonomy( 'nav_menu', 'nav_menu_item', array(
|
||||||
|
'public' => false,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => __( 'Navigation Menus' ),
|
'name' => __( 'Navigation Menus' ),
|
||||||
@ -73,6 +74,7 @@ function create_initial_taxonomies() {
|
|||||||
) ) ;
|
) ) ;
|
||||||
|
|
||||||
register_taxonomy( 'post_format', array('post', 'page', 'attachment'), array(
|
register_taxonomy( 'post_format', array('post', 'page', 'attachment'), array(
|
||||||
|
'public' => false,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => '',
|
'name' => '',
|
||||||
|
Loading…
Reference in New Issue
Block a user