Make WordPress Core


Ignore:
Timestamp:
11/11/2014 11:51:48 PM (11 years ago)
Author:
ocean90
Message:

Customizer: Add support for the media library in Background Image controls.

WP_Customize_Upload_Control (PHP) and api.UploadControl (JS) can now open the media modal.

props celloexpressions, and ericlewis for docs.
see #21483.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r30214 r30309  
    966966        /* Control Types (custom control classes) */
    967967        $this->register_control_type( 'WP_Customize_Color_Control' );
     968        $this->register_control_type( 'WP_Customize_Upload_Control' );
     969        $this->register_control_type( 'WP_Customize_Image_Control' );
    968970
    969971        /* Site Title & Tagline */
Note: See TracChangeset for help on using the changeset viewer.