Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the parameter to send only the necessary variables to the JavaScript control. Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default). Creates WP_Customize_Upload_Control and WP_Customize_Image_Control. git-svn-id: https://core.svn.wordpress.org/trunk@20319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment