Themes page: Don't display the Author as a link if the Author has no AuthorURI set. Props morganestes. Fixes #26098
git-svn-id: https://develop.svn.wordpress.org/trunk@26314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
90fda37ed4
commit
9240861283
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user