WordPress.org

Make WordPress Core

Ticket #38383: ticket.38383.2.diff

File ticket.38383.2.diff, 1.2 KB (added by dineshc, 4 years ago)
  • src/wp-content/themes/twentyseventeen/inc/template-tags.php

    diff --git src/wp-content/themes/twentyseventeen/inc/template-tags.php src/wp-content/themes/twentyseventeen/inc/template-tags.php
    index 98733ff..c431ac2 100644
    function twentyseventeen_posted_on() { 
    1717
    1818        // Get the author name; wrap it in a link.
    1919        $byline = sprintf(
    20                 _x( 'by %s', 'post author', 'twentyseventeen' ),
     20                __( 'by %s', 'twentyseventeen' ),
    2121                '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>'
    2222        );
    2323
    function twentyseventeen_time_link() { 
    4545        );
    4646
    4747        // Wrap the time string in a link, and preface it with 'Posted on'.
    48         return '<span class="screen-reader-text">' . _x( 'Posted on', 'post date', 'twentyseventeen' ) . '</span> <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>';
     48        return '<span class="screen-reader-text">' . __( 'Posted on', 'twentyseventeen' ) . '</span> <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>';
    4949}
    5050endif;
    5151