WordPress.org

Make WordPress Core

Ticket #13824: 13824.2.diff

File 13824.2.diff, 1015 bytes (added by rovo89, 4 years ago)

Extract meta-sep class from translated string

  • wp-content/themes/twentyten/functions.php

     
    493493 * @since Twenty Ten 1.0 
    494494 */ 
    495495function twentyten_posted_on() { 
    496         printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ), 
     496        printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="%3$s">by</span> %4$s', 'twentyten' ), 
    497497                'meta-prep meta-prep-author', 
    498498                sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', 
    499499                        get_permalink(), 
    500500                        esc_attr( get_the_time() ), 
    501501                        get_the_date() 
    502502                ), 
     503                'meta-sep', 
    503504                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 
    504505                        get_author_posts_url( get_the_author_meta( 'ID' ) ), 
    505506                        sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),