diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php
|
a
|
b
|
|
| 836 | 836 | if ( function_exists( 'get_post_states' ) ) { |
| 837 | 837 | $menu_post = get_post( $menu_item->object_id ); |
| 838 | | $post_states = get_post_states( $menu_post ); |
| 839 | | if ( $post_states ) { |
| 840 | | $menu_item->type_label = wp_strip_all_tags( implode( ', ', $post_states ) ); |
| | 838 | if ( $menu_post !== null ){ |
| | 839 | $post_states = get_post_states( $menu_post ); |
| | 840 | if ( $post_states ) { |
| | 841 | $menu_item->type_label = wp_strip_all_tags( implode( ', ', $post_states ) ); |
| | 842 | } |
| 841 | 843 | } |
| 842 | 844 | } |