Changeset 36095
- Timestamp:
- 12/26/2015 04:04:55 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r36016 r36095 81 81 } elseif ( 'post_type_archive' == $item->type ) { 82 82 $original_object = get_post_type_object( $item->object ); 83 $original_title = $original_object->labels->archives; 83 if ( $original_object ) { 84 $original_title = $original_object->labels->archives; 85 } 84 86 } 85 87 -
trunk/src/wp-includes/nav-menu.php
r35979 r36095 418 418 } elseif ( 'post_type_archive' == $args['menu-item-type'] ) { 419 419 $original_object = get_post_type_object( $args['menu-item-object'] ); 420 $original_title = $original_object->labels->archives; 420 if ( $original_object ) { 421 $original_title = $original_object->labels->archives; 422 } 421 423 } 422 424
Note: See TracChangeset
for help on using the changeset viewer.