Docs: Add a reference to `WP_Customize_Control::__construct()` for information on accepted arguments to override class property defaults in child classes.
Props marcio-zebedeu, marekdedic. Fixes #48348. Built from https://develop.svn.wordpress.org/trunk@47363 git-svn-id: http://core.svn.wordpress.org/trunk@47150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
44e1bbef85
commit
cfc27d08ce
|
@ -46,6 +46,8 @@ class WP_Customize_Color_Control extends WP_Customize_Control {
|
|||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id Control ID.
|
||||
* @param array $args Optional. Arguments to override class property defaults.
|
||||
* See WP_Customize_Control::__construct() for information
|
||||
* on accepted arguments.
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$this->statuses = array( '' => __( 'Default' ) );
|
||||
|
|
|
@ -48,6 +48,8 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
|||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id Control ID.
|
||||
* @param array $args Optional. Arguments to override class property defaults.
|
||||
* See WP_Customize_Control::__construct() for information
|
||||
* on accepted arguments.
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
parent::__construct( $manager, $id, $args );
|
||||
|
|
|
@ -41,7 +41,9 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
|||
*
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id The control ID.
|
||||
* @param array $args Optional. Overrides class property defaults.
|
||||
* @param array $args Optional. Arguments to override class property defaults.
|
||||
* See WP_Customize_Control::__construct() for information
|
||||
* on accepted arguments.
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
parent::__construct( $manager, $id, $args );
|
||||
|
|
|
@ -34,9 +34,11 @@ class WP_Customize_New_Menu_Control extends WP_Customize_Control {
|
|||
* @since 4.9.0
|
||||
* @deprecated 4.9.0
|
||||
*
|
||||
* @param WP_Customize_Manager $manager Manager.
|
||||
* @param string $id ID.
|
||||
* @param array $args Args.
|
||||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id The control ID.
|
||||
* @param array $args Optional. Arguments to override class property defaults.
|
||||
* See WP_Customize_Control::__construct() for information
|
||||
* on accepted arguments.
|
||||
*/
|
||||
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
|
||||
_deprecated_function( __METHOD__, '4.9.0' );
|
||||
|
|
|
@ -34,6 +34,8 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
|||
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
||||
* @param string $id Control ID.
|
||||
* @param array $args Optional. Arguments to override class property defaults.
|
||||
* See WP_Customize_Control::__construct() for information
|
||||
* on accepted arguments.
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
parent::__construct( $manager, $id, $args );
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-beta2-47362';
|
||||
$wp_version = '5.4-beta2-47363';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue