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
This commit is contained in:
parent
443760252b
commit
61d7726737
|
@ -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 }}' ) );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue