Themes: Hide 'Add New' with no JS. see #27055.
Built from https://develop.svn.wordpress.org/trunk@27936 git-svn-id: http://core.svn.wordpress.org/trunk@27766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ac60fcb315
commit
dcb39d4dad
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue