Add documentation for the `$type`, `$mime_type`, and `$button_labels` properties in `WP_Customize_Media_Control`.
See [31698]. See #31888. Built from https://develop.svn.wordpress.org/trunk@32023 git-svn-id: http://core.svn.wordpress.org/trunk@32002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0186bbcb95
commit
d63af2b6ee
|
@ -645,8 +645,31 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
||||||
* @see WP_Customize_Control
|
* @see WP_Customize_Control
|
||||||
*/
|
*/
|
||||||
class WP_Customize_Media_Control extends WP_Customize_Control {
|
class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||||
public $type = 'media';
|
/**
|
||||||
public $mime_type = '';
|
* 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();
|
public $button_labels = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -687,7 +710,7 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
|
* @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() {
|
public function to_json() {
|
||||||
parent::to_json();
|
parent::to_json();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta4-32022';
|
$wp_version = '4.2-beta4-32023';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue