Docs: Add missing DocBlocks for the $type
and $sidebar_id
properties, and summaries for the to_json()
and render_content()
methods in WP_Widget_Area_Customize_Control
.
See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35393 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab7d3bd104
commit
95be0b747f
@ -15,9 +15,31 @@
|
|||||||
* @see WP_Customize_Control
|
* @see WP_Customize_Control
|
||||||
*/
|
*/
|
||||||
class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Customize control type.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
* @access public
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
public $type = 'sidebar_widgets';
|
public $type = 'sidebar_widgets';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sidebar ID.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
* @access public
|
||||||
|
* @var int|string
|
||||||
|
*/
|
||||||
public $sidebar_id;
|
public $sidebar_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Refreshes the parameters passed to the JavaScript via JSON.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
public function to_json() {
|
public function to_json() {
|
||||||
parent::to_json();
|
parent::to_json();
|
||||||
$exported_properties = array( 'sidebar_id' );
|
$exported_properties = array( 'sidebar_id' );
|
||||||
@ -27,6 +49,9 @@ class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Renders the control's content.
|
||||||
|
*
|
||||||
|
* @since 3.9.0
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function render_content() {
|
public function render_content() {
|
||||||
|
Loading…
Reference in New Issue
Block a user