Changeset 51144
- Timestamp:
- 06/14/2021 08:38:38 PM (2 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r51003 r51144 89 89 $template_query = new WP_Query( $wp_query_args ); 90 90 $query_result = array(); 91 foreach ( $template_query-> get_posts()as $post ) {91 foreach ( $template_query->posts as $post ) { 92 92 $template = _build_template_result_from_post( $post ); 93 93 … … 131 131 ); 132 132 $template_query = new WP_Query( $wp_query_args ); 133 $posts = $template_query-> get_posts();133 $posts = $template_query->posts; 134 134 135 135 if ( count( $posts ) > 0 ) { -
trunk/src/wp-includes/theme-templates.php
r51003 r51144 50 50 ); 51 51 $check_query = new WP_Query( $check_query_args ); 52 $posts = $check_query-> get_posts();52 $posts = $check_query->posts; 53 53 54 54 if ( count( $posts ) > 0 ) { … … 60 60 $query = new WP_Query( $query_args ); 61 61 $suffix++; 62 } while ( count( $query-> get_posts()) > 0 );62 } while ( count( $query->posts ) > 0 ); 63 63 $override_slug = $alt_post_name; 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.