WordPress.org

Make WordPress Core

Ticket #24321: 24321.diff

File 24321.diff, 1.3 KB (added by trepmal, 11 months ago)

add hide-if-no-js classes

  • wp-admin/custom-header.php

     
    527527                        '_wpnonce-custom-header-upload' => wp_create_nonce('custom-header-upload'), 
    528528                ), admin_url('themes.php') ) ); 
    529529        ?> 
    530         <p> 
     530        <p class="hide-if-no-js"> 
    531531                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br /> 
    532532                <a id="choose-from-library-link" class="button" 
    533533                        data-update-link="<?php echo esc_attr( $modal_update_href ); ?>" 
  • wp-admin/custom-background.php

     
    255255                <?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?> 
    256256                <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 
    257257        </p> 
    258         <p> 
     258        <p class="hide-if-no-js"> 
    259259                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br /> 
    260260                <a id="choose-from-library-link" class="button" 
    261261                        data-choose="<?php esc_attr_e( 'Choose a Background Image' ); ?>"