Make WordPress Core


Ignore:
Timestamp:
05/10/2010 07:06:22 PM (16 years ago)
Author:
nbachiyski
Message:

Clean up loop i18n. Props zeo, see #13198

  • Take out tags from strings
  • Extract two common and complicatd strings into functions
  • Whitespace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/attachment.php

    r14532 r14541  
    8181
    8282                                        <div class="entry-utility">
    83                                         <?php
    84                                                 $tag_list = get_the_tag_list();
    85                                                 if ( $tag_list ) {
    86                                                         $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>.', 'twentyten' );
    87                                                 } else {
    88                                                         $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    89                                                 }
    90                                                 printf(
    91                                                         $utility_text,
    92                                                         get_the_category_list( ', ' ),
    93                                                         $tag_list,
    94                                                         get_permalink(),
    95                                                         the_title_attribute( 'echo=0' ),
    96                                                         get_post_comments_feed_link()
    97                                                 );
    98                                         ?>
    99 <?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span class="edit-link">', '</span>' ); ?>
     83                                                <?php echo twentyten_posted_in(); ?>
     84                                                <?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span class="edit-link">', '</span>' ); ?>
    10085                                        </div><!-- .entry-utility -->
    10186                                </div><!-- #post-<?php the_ID(); ?> -->
Note: See TracChangeset for help on using the changeset viewer.