Make WordPress Core


Ignore:
Timestamp:
06/10/2011 09:57:18 PM (13 years ago)
Author:
nacin
Message:

Twenty Eleven: escaping frenzy, hide authors if a single author blog. props DH-Shredder, props iandstewart, see #17385, fixes #17563.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/content-gallery.php

    r18189 r18244  
    1919
    2020        <div class="entry-meta">
    21             <?php
    22                 printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span>', 'twentyeleven' ),
    23                     get_permalink(),
    24                     get_the_date( 'c' ),
    25                     get_the_date(),
    26                     get_author_posts_url( get_the_author_meta( 'ID' ) ),
    27                     sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
    28                     get_the_author()
    29                 );
    30             ?>
     21            <?php twentyeleven_posted_on(); ?>
    3122        </div><!-- .entry-meta -->
    3223    </header><!-- .entry-header -->
     
    5546
    5647                <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
    57                         'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
     48                        'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    5849                        number_format_i18n( $total_images )
    5950                    ); ?></em></p>
Note: See TracChangeset for help on using the changeset viewer.