WordPress.org

Make WordPress Core

Changeset 26314


Ignore:
Timestamp:
11/22/2013 02:09:14 AM (8 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r26291 r26314  
    268268            <# } #>
    269269            <h3 class="theme-name">{{ data.name }}<span class="theme-version"><?php _e('Version: '); ?> {{ data.version }}</span></h3>
    270             <h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="{{ data.authorURI }}">{{ data.author }}</a>' ); ?></h4>
     270            <# if ( data.authorURI ) { #>
     271                <h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="{{ data.authorURI }}">{{ data.author }}</a>' ); ?></h4>
     272            <# } else { #>
     273                <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></h4>
     274            <# } #>
    271275
    272276            <# if ( data.hasUpdate ) { #>
Note: See TracChangeset for help on using the changeset viewer.