WordPress.org

Making WordPress.org

Changeset 1253


Ignore:
Timestamp:
02/11/2015 07:02:21 PM (7 years ago)
Author:
obenland
Message:

WP.org Themes: Add a link to the author's WP.org profiles page.

See #852.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php

    r1249 r1253  
    3434                    ?>
    3535                </span>
    36                 <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></h4>
     36                <h4 class="theme-author"><?php printf( __( 'By %s' ), sprintf( '<a href="https://profiles.wordpress.org/%s"><span class="author">%s</span><a/>', $theme->author ) ); ?></h4>
    3737
    3838                <div class="theme-description entry-summary"><?php the_content(); ?></div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1249 r1253  
    3434                        <?php printf( __( 'Version: %s' ), sprintf( '<abbr title="%1$s">%2$s</abbr>', esc_attr( sprintf( __( 'Last updated: %s' ), '{{ new Date(data.last_updated).toLocaleDateString() }}' ) ), '{{{ data.version }}}' ) ); ?>
    3535                    </span>
    36                     <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">{{{ data.author }}}</span>' ); ?></h4>
     36                    <h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="https://profiles.wordpress.org/{{ data.author }}"><span class="author">{{{ data.author }}}</span></a>' ); ?></h4>
    3737
    3838                    <p class="theme-description entry-summary">{{{ data.description }}}</p>
Note: See TracChangeset for help on using the changeset viewer.