4.1 Docs Audit: Improve inline documentation for various properties and methods in the `WP_Customize_Manager` class.
See #30469. Built from https://develop.svn.wordpress.org/trunk@30606 git-svn-id: http://core.svn.wordpress.org/trunk@30596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3bbf79ba92
commit
478f5f1f5d
|
@ -57,6 +57,8 @@ final class WP_Customize_Manager {
|
||||||
* Controls that may be rendered from JS templates.
|
* Controls that may be rendered from JS templates.
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
|
* @access protected
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $registered_control_types = array();
|
protected $registered_control_types = array();
|
||||||
|
|
||||||
|
@ -842,12 +844,13 @@ final class WP_Customize_Manager {
|
||||||
/**
|
/**
|
||||||
* Register a customize control type.
|
* Register a customize control type.
|
||||||
*
|
*
|
||||||
* Registered types are eligible to be rendered
|
* Registered types are eligible to be rendered via JS and created dynamically.
|
||||||
* via JS and created dynamically.
|
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
|
* @access public
|
||||||
*
|
*
|
||||||
* @param string $control Name of a custom control which is a subclass of {@see WP_Customize_Control}.
|
* @param string $control Name of a custom control which is a subclass of
|
||||||
|
* {@see WP_Customize_Control}.
|
||||||
*/
|
*/
|
||||||
public function register_control_type( $control ) {
|
public function register_control_type( $control ) {
|
||||||
$this->registered_control_types[] = $control;
|
$this->registered_control_types[] = $control;
|
||||||
|
@ -857,6 +860,7 @@ final class WP_Customize_Manager {
|
||||||
* Render JS templates for all registered control types.
|
* Render JS templates for all registered control types.
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function render_control_templates() {
|
public function render_control_templates() {
|
||||||
foreach ( $this->registered_control_types as $control_type ) {
|
foreach ( $this->registered_control_types as $control_type ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30605';
|
$wp_version = '4.1-beta2-30606';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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