Make WordPress Core

Changeset 13260


Ignore:
Timestamp:
02/20/2010 10:35:39 PM (17 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r13257 r13260  
    7272                                                                                        'query_var' => false,
    7373                                                                                ) );
     74
    7475        register_post_status( 'publish', array( 'label' => _x('Published', 'post'),
    7576                                                                                        'public' => true,
     
    113114                                                                                        '_builtin' => true,
    114115                                                                                        'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
    115                                                                                 ) );
    116 
    117         register_post_status( 'menu-category', array(   'internal' => true,
    118                                                                                         '_builtin' => true
    119                                                                                 ) );
    120 
    121         register_post_status( 'menu-page', array(       'internal' => true,
    122                                                                                         '_builtin' => true
    123                                                                                 ) );
    124 
    125         register_post_status( 'menu-custom', array(     'internal' => true,
    126                                                                                         '_builtin' => true
    127116                                                                                ) );
    128117}
  • trunk/wp-includes/taxonomy.php

    r13259 r13260  
    3939                                                                                                ) ) ;
    4040
    41         register_taxonomy( 'menu', 'post', array(               'hierarchical' => false,
     41        register_taxonomy( 'menu', 'menu_item', array(  'hierarchical' => false,
    4242                                                                                                        'query_var' => false,
    4343                                                                                                        'rewrite' => false,
Note: See TracChangeset for help on using the changeset viewer.