Add documentation for the $type
, $mime_type
, and $button_labels
properties in WP_Customize_Media_Control
.
See [31698]. See #31888. git-svn-id: https://develop.svn.wordpress.org/trunk@32023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3265aad744
commit
1463a2c88c
@ -645,8 +645,31 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
||||
* @see WP_Customize_Control
|
||||
*/
|
||||
class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||
/**
|
||||
* Control type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'media';
|
||||
|
||||
/**
|
||||
* Media control mime type.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $mime_type = '';
|
||||
|
||||
/**
|
||||
* Button labels.
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @access public
|
||||
* @var array
|
||||
*/
|
||||
public $button_labels = array();
|
||||
|
||||
/**
|
||||
@ -687,7 +710,7 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||
* @since 3.4.0
|
||||
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
|
||||
*
|
||||
* @uses WP_Customize_Control::to_json()
|
||||
* @see WP_Customize_Control::to_json()
|
||||
*/
|
||||
public function to_json() {
|
||||
parent::to_json();
|
||||
|
Loading…
Reference in New Issue
Block a user