Make WordPress Core


Ignore:
Timestamp:
11/09/2012 11:37:24 AM (12 years ago)
Author:
koopersmith
Message:

Integrate media with the custom background page. fixes #21818, see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r22470 r22502  
    107107
    108108        add_thickbox();
    109         wp_enqueue_script('media-upload');
     109        wp_enqueue_media();
    110110        wp_enqueue_script('custom-background');
    111111        wp_enqueue_style('wp-color-picker');
     
    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"
     273            data-choose="<?php esc_attr_e( 'Choose a Background Image' ); ?>"
     274            data-update="<?php esc_attr_e( 'Set as background' ); ?>"><?php _e( 'Choose Image' ); ?></a>
    273275    </p>
    274276    </form>
Note: See TracChangeset for help on using the changeset viewer.