Changeset 47886 for trunk/src/wp-content/themes/twentyten
- Timestamp:
- 06/02/2020 05:03:06 PM (6 years ago)
- Location:
- trunk/src/wp-content/themes/twentyten
- Files:
-
- 2 edited
-
functions.php (modified) (2 diffs)
-
loop.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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 $tags_list = get_the_tag_list( '', ', ' );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 -->
Note: See TracChangeset
for help on using the changeset viewer.