From 123b6244e3ac1d1462923623882127c8bb256a10 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 20 Feb 2010 22:35:39 +0000 Subject: [PATCH] Remove custom post states. Register taxonomy against menu_item post type. see #11817 git-svn-id: https://develop.svn.wordpress.org/trunk@13260 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 13 +------------ wp-includes/taxonomy.php | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 3610201bce..c083bb6ade 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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 (%s)', 'Auto-Drafts (%s)') ) ); - - 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 diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index c51e548581..e9664896d2 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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,