Make WordPress Core

Ticket #18900: 18900-header-bg.diff

File 18900-header-bg.diff, 1.6 KB (added by DrewAPicture, 12 years ago)

Choose from Media Library links

  • wp-admin/custom-header.php

     
    540540        ?>
    541541        <p>
    542542                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    543                 <a id="choose-from-library-link" class="button thickbox" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a>
     543                <a id="choose-from-library-link" class="button thickbox hide-if-no-js" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a>
     544                <p class="hide-if-js"><strong><?php _e( 'You need Javascript to choose a header image from the Media Library.' ); ?></strong></p>
    544545        </p>
    545546        </form>
    546547</td>
  • wp-admin/custom-background.php

     
    269269        ?>
    270270        <p>
    271271                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    272                 <a id="choose-from-library-link" class="button thickbox" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a>
     272                <a id="choose-from-library-link" class="button thickbox hide-if-no-js" href="<?php echo esc_url( $image_library_url ); ?>"><?php _e( 'Choose Image' ); ?></a>
     273                <p class="hide-if-js"><strong><?php _e( 'You need Javascript to choose a background image from the Media Library.' ); ?></strong></p>
    273274        </p>
    274275        </form>
    275276</td>