Make WordPress Core


Ignore:
Timestamp:
02/21/2010 06:24:41 PM (16 years ago)
Author:
ryan
Message:

Use nav_menu as the taxonomy name and nav_menu_item as the post type. Set object_id in postmeta. see #11817

File:
1 edited

Legend:

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

    r13260 r13284  
    6464                                        ) );
    6565
    66     register_post_type( 'menu_item', array( 'public' => false,
    67                                             'show_ui' => false,
    68                                             '_builtin' => true,
    69                                             'capability_type' => 'post',
    70                                             'hierarchical' => false,
    71                                             'rewrite' => false,
    72                                             'query_var' => false,
    73                                         ) );
     66    register_post_type( 'nav_menu_item', array( 'public' => false,
     67                                                'show_ui' => false,
     68                                                '_builtin' => true,
     69                                                'capability_type' => 'post',
     70                                                'hierarchical' => false,
     71                                                'rewrite' => false,
     72                                                'query_var' => false,
     73                                            ) );
    7474
    7575    register_post_status( 'publish', array( 'label' => _x('Published', 'post'),
Note: See TracChangeset for help on using the changeset viewer.