mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@18276 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -528,8 +528,8 @@ function wp_get_nav_menu_items( $menu, $args = array() ) {
|
||||
}
|
||||
|
||||
$items = array_map( 'wp_setup_nav_menu_item', $items );
|
||||
|
||||
if ( ! in_array( $args['post_status'], array( 'draft', 'any' ) ) )
|
||||
|
||||
if ( ! in_array( $args['post_status'], array( 'draft', 'any' ) ) )
|
||||
$items = array_filter( $items, '_is_valid_nav_menu_item' );
|
||||
|
||||
if ( ARRAY_A == $args['output'] ) {
|
||||
|
||||
Reference in New Issue
Block a user