Changeset 54751
- Timestamp:
- 11/04/2022 06:22:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r54494 r54751 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.