From 61d7726737d8367310daa7958fa08d05ccfaf04e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 5 Apr 2015 14:53:25 +0000 Subject: [PATCH] Add documentation for the `$type` and `$theme` properties in `WP_Customize_Theme_Control`. Also add some missing `@access` tags to various DocBlocks. See [31533]. See #31888. Built from https://develop.svn.wordpress.org/trunk@32028 git-svn-id: http://core.svn.wordpress.org/trunk@32007 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-control.php | 21 ++++++++++++++++++++- wp-includes/version.php | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index 3c8a71e451..9be8e75ae8 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -1196,14 +1196,31 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { */ class WP_Customize_Theme_Control extends WP_Customize_Control { + /** + * Customize control type. + * + * @since 4.2.0 + * @access public + * @var string + */ public $type = 'theme'; + + /** + * Theme object. + * + * @since 4.2.0 + * @access public + * @var WP_Theme + */ public $theme; /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 4.2.0 - * @uses WP_Customize_Control::to_json() + * @access public + * + * @see WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); @@ -1214,6 +1231,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control { * Don't render the control content from PHP, as it's rendered via JS on load. * * @since 4.2.0 + * @access public */ public function render_content() {} @@ -1221,6 +1239,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control { * Render a JS template for theme display. * * @since 4.2.0 + * @access public */ public function content_template() { $preview_url = site_url( add_query_arg( 'theme', '{{ data.theme.id }}' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8b272abc0c..54d06ca61a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta4-32027'; +$wp_version = '4.2-beta4-32028'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.