Changeset 47211
- Timestamp:
- 02/07/2020 11:44:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r47157 r47211 818 818 if ( $object ) { 819 819 $menu_item->type_label = $object->labels->singular_name; 820 // Use post states for special pages. 821 $menu_post = get_post( $menu_item->object_id ); 822 $post_states = get_post_states( $menu_post ); 823 if ( $post_states ) { 824 $menu_item->type_label = implode( ',', $post_states ); 825 } 820 826 } else { 821 827 $menu_item->type_label = $menu_item->object;
Note: See TracChangeset
for help on using the changeset viewer.