Make WordPress Core


Ignore:
Timestamp:
03/10/2015 06:01:42 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Introduce WP_Customize_Media_Control.

WP_Customize_Media_Control is a new base class for all Customizer media controls. If used directly it supports the ID of an attachment instead of an URL like WP_Customize_Upload_Control.

props celloexpressions.
fixes #29215.

File:
1 edited

Legend:

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

    r31697 r31698  
    11401140        /* Control Types (custom control classes) */
    11411141        $this->register_control_type( 'WP_Customize_Color_Control' );
     1142        $this->register_control_type( 'WP_Customize_Media_Control' );
    11421143        $this->register_control_type( 'WP_Customize_Upload_Control' );
    11431144        $this->register_control_type( 'WP_Customize_Image_Control' );
Note: See TracChangeset for help on using the changeset viewer.