WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/24/2015 05:45:11 PM (5 years ago)
Author:
wonderboymusic
Message:

Nav Menus: show custom post type Archive item at the top of the View All tab for the post type on the legacy Nav Menu screen.

Props aaroncampbell, DrewAPicture, seanchayes, hlashbrooke, paulwilde, ericlewis, raulillana
See #16075.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r35371 r35382  
    11581158                case 'post_type' :
    11591159                    $_object = get_post( $menu_item_data['menu-item-object-id'] );
     1160                break;
     1161
     1162                case 'post_type_archive' :
     1163                    $_object = get_post_type_object( $menu_item_data['menu-item-object'] );
    11601164                break;
    11611165
Note: See TracChangeset for help on using the changeset viewer.