From 1463a2c88c21ceb0abc8e2ea0dbb930ac07bf8af Mon Sep 17 00:00:00 2001 From: Drew Jaynes <drewapicture@git.wordpress.org> Date: Sat, 4 Apr 2015 23:04:51 +0000 Subject: [PATCH] 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 --- .../class-wp-customize-control.php | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index 8308f4ae18..3c8a71e451 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -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 { - 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(); /** @@ -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();