Changeset 51144 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 06/14/2021 08:38:38 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-template-utils.php (modified) (2 diffs)
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 ) {
Note: See TracChangeset
for help on using the changeset viewer.