Themes: Hide 'Add New' with no JS. see #27055.

git-svn-id: https://develop.svn.wordpress.org/trunk@27936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-04-03 23:05:01 +00:00
parent ccb4f3714a
commit e73e290712
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<h2><?php esc_html_e( 'Themes' ); ?> <h2><?php esc_html_e( 'Themes' ); ?>
<span class="theme-count"><?php echo count( $themes ); ?></span> <span class="theme-count"><?php echo count( $themes ); ?></span>
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a> <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a>
<?php endif; ?> <?php endif; ?>
</h2> </h2>
<?php <?php