Changeset 54767 for branches/6.1
- Timestamp:
- 11/08/2022 06:30:53 PM (2 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/block-template-utils.php
r54753 r54767 638 638 $terms_query = $term_query->query( $args ); 639 639 640 if ( empty( $terms_query ->terms) ) {640 if ( empty( $terms_query ) ) { 641 641 $template->title = sprintf( 642 642 /* translators: Custom template title in the Site Editor, referencing a taxonomy term that was not found. 1: Taxonomy singular name, 2: Term slug. */ … … 648 648 } 649 649 650 $term_title = $terms_query ->terms[0]->name;650 $term_title = $terms_query[0]->name; 651 651 652 652 $template->title = sprintf( … … 672 672 $terms_with_same_title_query = $term_query->query( $args ); 673 673 674 if ( count( $terms_with_same_title_query ->terms) > 1 ) {674 if ( count( $terms_with_same_title_query ) > 1 ) { 675 675 $template->title = sprintf( 676 676 /* translators: Custom template title in the Site Editor. 1: Template title, 2: Term slug. */
Note: See TracChangeset
for help on using the changeset viewer.