WordPress.org

Make WordPress Core

Changeset 27936


Ignore:
Timestamp:
04/03/14 23:05:01 (15 months ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r27760 r27936  
    120120        <span class="theme-count"><?php echo count( $themes ); ?></span> 
    121121    <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 
    122         <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a> 
     122        <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> 
    123123    <?php endif; ?> 
    124124    </h2> 
Note: See TracChangeset for help on using the changeset viewer.