From 5178d29f4a57faa0453b11c9f557d71e5681a75c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2020 16:19:08 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@47363 602fd350-edb4-49c9-b593-d223f7449a82 --- .../customize/class-wp-customize-color-control.php | 2 ++ .../customize/class-wp-customize-media-control.php | 2 ++ .../class-wp-customize-nav-menu-item-control.php | 4 +++- .../customize/class-wp-customize-new-menu-control.php | 8 +++++--- .../customize/class-wp-customize-site-icon-control.php | 2 ++ 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/customize/class-wp-customize-color-control.php b/src/wp-includes/customize/class-wp-customize-color-control.php index 6288ee43a4..f1ebcf7e19 100644 --- a/src/wp-includes/customize/class-wp-customize-color-control.php +++ b/src/wp-includes/customize/class-wp-customize-color-control.php @@ -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' ) ); diff --git a/src/wp-includes/customize/class-wp-customize-media-control.php b/src/wp-includes/customize/class-wp-customize-media-control.php index 2856f3435a..ef2079bf28 100644 --- a/src/wp-includes/customize/class-wp-customize-media-control.php +++ b/src/wp-includes/customize/class-wp-customize-media-control.php @@ -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 ); diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php b/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php index 0a10540375..7f39e11b2d 100644 --- a/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php +++ b/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php @@ -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 ); diff --git a/src/wp-includes/customize/class-wp-customize-new-menu-control.php b/src/wp-includes/customize/class-wp-customize-new-menu-control.php index 6233fde40e..69d27dcc4a 100644 --- a/src/wp-includes/customize/class-wp-customize-new-menu-control.php +++ b/src/wp-includes/customize/class-wp-customize-new-menu-control.php @@ -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' ); diff --git a/src/wp-includes/customize/class-wp-customize-site-icon-control.php b/src/wp-includes/customize/class-wp-customize-site-icon-control.php index b4edfb9da1..1126bdbb70 100644 --- a/src/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/src/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -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 );