Themes page: Don't display the Author as a link if the Author has no AuthorURI set. Props morganestes. Fixes #26098

Built from https://develop.svn.wordpress.org/trunk@26314


git-svn-id: http://core.svn.wordpress.org/trunk@26218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-11-22 02:10:10 +00:00
parent b7872fd70a
commit 3be48e6d26

View File

@ -267,7 +267,11 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
<# } #>
<h3 class="theme-name">{{ data.name }}<span class="theme-version"><?php _e('Version: '); ?> {{ data.version }}</span></h3>
<h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="{{ data.authorURI }}">{{ data.author }}</a>' ); ?></h4>
<# if ( data.authorURI ) { #>
<h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="{{ data.authorURI }}">{{ data.author }}</a>' ); ?></h4>
<# } else { #>
<h4 class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></h4>
<# } #>
<# if ( data.hasUpdate ) { #>
<div class="theme-update-message">