Changeset 13714
- Timestamp:
- 03/16/2010 04:34:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/nav-menu.php
r13704 r13714 150 150 */ 151 151 function wp_nav_menu_item_post_type_metabox( $object, $post_type ) { 152 $args = array( 'post_type' => $post_type['args']->name, );152 $args = array( 'post_type' => $post_type['args']->name, 'post_status' => 'publish' ); 153 153 154 154 if ( 'attachment' == $post_type['args']->name ) -
trunk/wp-includes/nav-menu.php
r13704 r13714 211 211 212 212 $menu_item->title = $menu_item->post_title; 213 $menu_item->url = get_p ost_permalink( $menu_item->ID );213 $menu_item->url = get_permalink( $menu_item->ID ); 214 214 $menu_item->target = '_none'; 215 215
Note: See TracChangeset
for help on using the changeset viewer.