Changeset 54891 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r54834 r54891 33 33 34 34 if ( 'markup' === $response_format ) { 35 $args['walker'] = new Walker_Nav_Menu_Checklist ;35 $args['walker'] = new Walker_Nav_Menu_Checklist(); 36 36 } 37 37 … … 430 430 431 431 // @todo Transient caching of these results with proper invalidation on updating of a post of this type. 432 $get_posts = new WP_Query ;432 $get_posts = new WP_Query(); 433 433 $posts = $get_posts->query( $args ); 434 434 … … 437 437 if ( ! empty( $suppress_page_ids ) ) { 438 438 unset( $args['post__not_in'] ); 439 $get_posts = new WP_Query ;439 $get_posts = new WP_Query(); 440 440 $posts = $get_posts->query( $args ); 441 441 } else { … … 1060 1060 1061 1061 if ( class_exists( $walker_class_name ) ) { 1062 $walker = new $walker_class_name ;1062 $walker = new $walker_class_name(); 1063 1063 } else { 1064 1064 return new WP_Error(
Note: See TracChangeset
for help on using the changeset viewer.