Changeset 47886
- Timestamp:
- 06/02/2020 05:03:06 PM (4 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/content-featured.php
r47808 r47886 34 34 <?php 35 35 /* translators: Used between list items, there is a space after the comma. */ 36 $tag _list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );36 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 37 37 38 if ( '' !== $tag_list) {38 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 39 39 /* translators: 1: Category list, 2: Tag list, 3: Post permalink, 4: Post title. */ 40 40 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); … … 48 48 /* translators: Used between list items, there is a space after the comma. */ 49 49 get_the_category_list( __( ', ', 'twentyeleven' ) ), 50 $tag _list,50 $tags_list, 51 51 esc_url( get_permalink() ), 52 52 the_title_attribute( 'echo=0' ) -
trunk/src/wp-content/themes/twentyeleven/content-gallery.php
r47122 r47886 71 71 <footer class="entry-meta"> 72 72 <?php $show_sep = false; ?> 73 73 74 <?php 74 /* translators: Used between list items, there is a space after the comma. */ 75 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 75 /* translators: Used between list items, there is a space after the comma. */ 76 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 77 76 78 if ( $categories_list ) : 77 79 ?> … … 84 86 </span> 85 87 <?php endif; // End if categories. ?> 88 86 89 <?php 87 /* translators: Used between list items, there is a space after the comma. */ 88 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 89 if ( $tags_list ) : 90 /* translators: Used between list items, there is a space after the comma. */ 91 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 92 93 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 90 94 if ( $show_sep ) : 91 95 ?> -
trunk/src/wp-content/themes/twentyeleven/content-image.php
r47122 r47886 56 56 <div class="entry-meta"> 57 57 <?php 58 /* translators: Used between list items, there is a space after the comma. */ 59 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 58 /* translators: Used between list items, there is a space after the comma. */ 59 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 60 60 61 if ( $categories_list ) : 61 62 ?> … … 67 68 </span> 68 69 <?php endif; // End if categories. ?> 70 69 71 <?php 70 /* translators: Used between list items, there is a space after the comma. */ 71 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 72 if ( $tags_list ) : 72 /* translators: Used between list items, there is a space after the comma. */ 73 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 74 75 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 73 76 ?> 74 77 <span class="tag-links"> -
trunk/src/wp-content/themes/twentyeleven/content-quote.php
r47122 r47886 47 47 <footer class="entry-meta"> 48 48 <?php $show_sep = false; ?> 49 49 50 <?php 50 /* translators: Used between list items, there is a space after the comma. */ 51 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 51 /* translators: Used between list items, there is a space after the comma. */ 52 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 53 52 54 if ( $categories_list ) : 53 55 ?> … … 60 62 </span> 61 63 <?php endif; // End if categories. ?> 64 62 65 <?php 63 /* translators: Used between list items, there is a space after the comma. */ 64 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 65 if ( $tags_list ) : 66 /* translators: Used between list items, there is a space after the comma. */ 67 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 68 69 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 66 70 if ( $show_sep ) : 67 71 ?> -
trunk/src/wp-content/themes/twentyeleven/content-single.php
r47808 r47886 38 38 39 39 /* translators: Used between list items, there is a space after the comma. */ 40 $tag _list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );40 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 41 41 42 if ( '' !== $tag_list) {42 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 43 43 /* translators: 1: Categories list, 2: Tag list, 3: Permalink, 4: Post title, 5: Author name, 6: Author URL. */ 44 44 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); 45 } elseif ( '' !==$categories_list ) {45 } elseif ( $categories_list ) { 46 46 /* translators: 1: Categories list, 2: Tag list, 3: Permalink, 4: Post title, 5: Author name, 6: Author URL. */ 47 47 $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); … … 54 54 $utility_text, 55 55 $categories_list, 56 $tag _list,56 $tags_list, 57 57 esc_url( get_permalink() ), 58 58 the_title_attribute( 'echo=0' ), -
trunk/src/wp-content/themes/twentyeleven/content.php
r47808 r47886 53 53 <footer class="entry-meta"> 54 54 <?php $show_sep = false; ?> 55 55 56 <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported. ?> 56 57 <?php 57 58 /* translators: Used between list items, there is a space after the comma. */ 58 59 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 60 59 61 if ( $categories_list ) : 60 62 ?> … … 68 70 <?php endif; // End if categories. ?> 69 71 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ). ?> 72 70 73 <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?> 71 74 <?php 72 75 /* translators: Used between list items, there is a space after the comma. */ 73 76 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 74 if ( $tags_list ) : 77 78 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 75 79 if ( $show_sep ) : 76 80 ?> -
trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php
r47122 r47886 97 97 /* translators: Used between list items, there is a space after the comma. */ 98 98 $tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) ); 99 if ( $tags_list ) {99 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 100 100 printf( 101 101 /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */ -
trunk/src/wp-content/themes/twentyten/functions.php
r47597 r47886 631 631 function twentyten_posted_in() { 632 632 // Retrieves tag list of current post, separated by commas. 633 $tag_list = get_the_tag_list( '', ', ' ); 634 if ( $tag_list && ! is_wp_error( $tag_list ) ) { 633 $tags_list = get_the_tag_list( '', ', ' ); 634 635 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 635 636 /* translators: 1: Category name, 2: Tag name, 3: Post permalink, 4: Post title. */ 636 637 $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); … … 642 643 $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 643 644 } 645 644 646 // Prints the string, replacing the placeholders. 645 647 printf( 646 648 $posted_in, 647 649 get_the_category_list( ', ' ), 648 $tag _list,650 $tags_list, 649 651 get_permalink(), 650 652 the_title_attribute( 'echo=0' ) -
trunk/src/wp-content/themes/twentyten/loop.php
r47808 r47886 177 177 <span class="meta-sep">|</span> 178 178 <?php endif; ?> 179 179 180 <?php 180 181 if ( $tags_list ) :181 $tags_list = get_the_tag_list( '', ', ' ); 182 if ( $tags_list && ! is_wp_error( $tags_list ) ) : 182 183 ?> 183 184 <span class="tag-links"> … … 189 190 <span class="meta-sep">|</span> 190 191 <?php endif; ?> 192 191 193 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 194 192 195 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 193 196 </div><!-- .entry-utility --> -
trunk/src/wp-content/themes/twentythirteen/functions.php
r47808 r47886 490 490 491 491 /* translators: Used between list items, there is a space after the comma. */ 492 $tag _list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );493 if ( $tag _list) {494 echo '<span class="tags-links">' . $tag _list . '</span>';492 $tags_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); 493 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 494 echo '<span class="tags-links">' . $tags_list . '</span>'; 495 495 } 496 496 -
trunk/src/wp-content/themes/twentytwelve/functions.php
r47808 r47886 502 502 503 503 /* translators: Used between list items, there is a space after the comma. */ 504 $tag _list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );504 $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); 505 505 506 506 $date = sprintf( … … 520 520 ); 521 521 522 if ( $tag _list) {522 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 523 523 /* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */ 524 524 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); … … 534 534 $utility_text, 535 535 $categories_list, 536 $tag _list,536 $tags_list, 537 537 $date, 538 538 $author
Note: See TracChangeset
for help on using the changeset viewer.