Remove custom post states. Register taxonomy against menu_item post type. see #11817

git-svn-id: http://svn.automattic.com/wordpress/trunk@13260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-20 22:35:39 +00:00
parent f120e4319d
commit 470eb8e6ce
2 changed files with 2 additions and 13 deletions

View File

@ -71,6 +71,7 @@ function create_initial_post_types() {
'rewrite' => false,
'query_var' => false,
) );
register_post_status( 'publish', array( 'label' => _x('Published', 'post'),
'public' => true,
'_builtin' => true,
@ -113,18 +114,6 @@ function create_initial_post_types() {
'_builtin' => true,
'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
) );
register_post_status( 'menu-category', array( 'internal' => true,
'_builtin' => true
) );
register_post_status( 'menu-page', array( 'internal' => true,
'_builtin' => true
) );
register_post_status( 'menu-custom', array( 'internal' => true,
'_builtin' => true
) );
}
add_action( 'init', 'create_initial_post_types', 0 ); // highest priority

View File

@ -38,7 +38,7 @@ function create_initial_taxonomies() {
'_builtin' => true
) ) ;
register_taxonomy( 'menu', 'post', array( 'hierarchical' => false,
register_taxonomy( 'menu', 'menu_item', array( 'hierarchical' => false,
'query_var' => false,
'rewrite' => false,
'show_ui' => false,