Changeset 54752 for branches/6.1/src/wp-includes/block-template-utils.php
- Timestamp:
- 11/05/2022 05:28:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1/src/wp-includes/block-template-utils.php
r54494 r54752 557 557 ); 558 558 559 $args 559 $args = array( 560 560 'name' => $slug, 561 561 ); 562 $args = wp_parse_args( $args, $default_args ); 562 $args = wp_parse_args( $args, $default_args ); 563 563 564 $posts_query = new WP_Query( $args ); 564 565 … … 592 593 'title' => $post_title, 593 594 ); 594 $args = wp_parse_args( $args, $default_args ); 595 $args = wp_parse_args( $args, $default_args ); 596 595 597 $posts_with_same_title_query = new WP_Query( $args ); 596 598 … … 631 633 $term_query = new WP_Term_Query(); 632 634 633 $args 635 $args = array( 634 636 'number' => 1, 635 637 'slug' => $slug, 636 638 ); 637 $args = wp_parse_args( $args, $default_args ); 639 $args = wp_parse_args( $args, $default_args ); 640 638 641 $terms_query = $term_query->query( $args ); 639 642 … … 669 672 'name' => $term_title, 670 673 ); 671 $args = wp_parse_args( $args, $default_args ); 674 $args = wp_parse_args( $args, $default_args ); 675 672 676 $terms_with_same_title_query = $term_query->query( $args ); 673 677
Note: See TracChangeset
for help on using the changeset viewer.