Make WordPress Core

Ticket #18900: 18900.4.patch

File 18900.4.patch, 2.4 KB (added by Mte90, 8 years ago)

only double quotes for classes

  • src/wp-admin/custom-background.php

     
    274274                <?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
    275275                <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
    276276        </p>
    277         <p>
     277        <p class="hide-if-no-js">
    278278                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    279279                <button id="choose-from-library-link" class="button"
    280280                        data-choose="<?php esc_attr_e( 'Choose a Background Image' ); ?>"
    281281                        data-update="<?php esc_attr_e( 'Set as background' ); ?>"><?php _e( 'Choose Image' ); ?></button>
    282282        </p>
     283        <p class="hide-if-js">
     284                <strong><?php _e( 'You need Javascript to choose an image from the Media Library.' ); ?></strong>
     285        </p>
    283286        </form>
    284287</td>
    285288</tr>
  • src/wp-admin/custom-header.php

     
    585585                        '_wpnonce-custom-header-upload' => wp_create_nonce('custom-header-upload'),
    586586                ), admin_url('themes.php') ) );
    587587        ?>
    588         <p>
     588        <p class="hide-if-no-js">
    589589                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    590590                <button id="choose-from-library-link" class="button"
    591591                        data-update-link="<?php echo esc_attr( $modal_update_href ); ?>"
     
    592592                        data-choose="<?php esc_attr_e( 'Choose a Custom Header' ); ?>"
    593593                        data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></button>
    594594        </p>
     595        <p class="hide-if-js">
     596                <strong><?php _e( 'You need Javascript to choose an image from the Media Library.' ); ?></strong>
     597        </p>
    595598        </form>
    596599</td>
    597600</tr>
  • src/wp-admin/includes/media.php

     
    14561456                <tr>
    14571457                        <td class='A1B1' id='thumbnail-head-$post->ID'>
    14581458                        <p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>
    1459                         <p>$image_edit_button</p>
     1459                        <p class="hide-if-no-js">$image_edit_button</p>
    14601460                        </td>
    14611461                        <td>
    14621462                        <p><strong>" . __('File name:') . "</strong> $filename</p>