From bd71eb4b74fddd9b4cae867555fcb4f2c5fd5491 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 26 Feb 2020 15:31:19 +0000 Subject: [PATCH] Docs: Use a consistent description for the `$manager` parameter in various Customizer class constructions. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47383 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-nav-menus.php | 2 +- src/wp-includes/class-wp-customize-panel.php | 2 +- src/wp-includes/class-wp-customize-section.php | 2 +- src/wp-includes/class-wp-customize-setting.php | 6 +++--- src/wp-includes/class-wp-customize-widgets.php | 2 +- .../customize/class-wp-customize-custom-css-setting.php | 6 +++--- .../customize/class-wp-customize-nav-menu-item-setting.php | 6 +++--- .../customize/class-wp-customize-nav-menu-setting.php | 6 +++--- .../customize/class-wp-customize-new-menu-section.php | 2 +- .../customize/class-wp-customize-selective-refresh.php | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php index d4a4cfa513..1b44b1453d 100644 --- a/src/wp-includes/class-wp-customize-nav-menus.php +++ b/src/wp-includes/class-wp-customize-nav-menus.php @@ -39,7 +39,7 @@ final class WP_Customize_Nav_Menus { * * @since 4.3.0 * - * @param WP_Customize_Manager $manager An instance of the WP_Customize_Manager class. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. */ public function __construct( $manager ) { $this->manager = $manager; diff --git a/src/wp-includes/class-wp-customize-panel.php b/src/wp-includes/class-wp-customize-panel.php index 185908bea8..36092c5f26 100644 --- a/src/wp-includes/class-wp-customize-panel.php +++ b/src/wp-includes/class-wp-customize-panel.php @@ -138,7 +138,7 @@ class WP_Customize_Panel { * @since 4.0.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. - * @param string $id An specific ID for the panel. + * @param string $id A specific ID for the panel. * @param array $args Panel arguments. */ public function __construct( $manager, $id, $args = array() ) { diff --git a/src/wp-includes/class-wp-customize-section.php b/src/wp-includes/class-wp-customize-section.php index 47ff0910ba..4cbc066137 100644 --- a/src/wp-includes/class-wp-customize-section.php +++ b/src/wp-includes/class-wp-customize-section.php @@ -149,7 +149,7 @@ class WP_Customize_Section { * @since 3.4.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. - * @param string $id An specific ID of the section. + * @param string $id A specific ID of the section. * @param array $args Section arguments. */ public function __construct( $manager, $id, $args = array() ) { diff --git a/src/wp-includes/class-wp-customize-setting.php b/src/wp-includes/class-wp-customize-setting.php index a457709fcf..ee5a1db3d3 100644 --- a/src/wp-includes/class-wp-customize-setting.php +++ b/src/wp-includes/class-wp-customize-setting.php @@ -153,9 +153,9 @@ class WP_Customize_Setting { * * @since 3.4.0 * - * @param WP_Customize_Manager $manager - * @param string $id An specific ID of the setting. Can be a - * theme mod or option name. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. + * @param string $id A specific ID of the setting. + * Can be a theme mod or option name. * @param array $args Setting arguments. */ public function __construct( $manager, $id, $args = array() ) { diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index 42953fe033..f30c56d297 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -94,7 +94,7 @@ final class WP_Customize_Widgets { * * @since 3.9.0 * - * @param WP_Customize_Manager $manager Customize manager bootstrap instance. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. */ public function __construct( $manager ) { $this->manager = $manager; diff --git a/src/wp-includes/customize/class-wp-customize-custom-css-setting.php b/src/wp-includes/customize/class-wp-customize-custom-css-setting.php index 085a8b5583..ea0732efc2 100644 --- a/src/wp-includes/customize/class-wp-customize-custom-css-setting.php +++ b/src/wp-includes/customize/class-wp-customize-custom-css-setting.php @@ -57,9 +57,9 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting { * * @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`. * - * @param WP_Customize_Manager $manager The Customize Manager class. - * @param string $id An specific ID of the setting. Can be a - * theme mod or option name. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. + * @param string $id A specific ID of the setting. + * Can be a theme mod or option name. * @param array $args Setting arguments. */ public function __construct( $manager, $id, $args = array() ) { diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php b/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php index 76908bf786..0be10e27c1 100644 --- a/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php +++ b/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php @@ -155,9 +155,9 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting { * * @since 4.3.0 * - * @param WP_Customize_Manager $manager Bootstrap Customizer instance. - * @param string $id An specific ID of the setting. Can be a - * theme mod or option name. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. + * @param string $id A specific ID of the setting. + * Can be a theme mod or option name. * @param array $args Optional. Setting arguments. * * @throws Exception If $id is not valid for this setting type. diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php b/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php index 8c4f98d0aa..3ce4ab998b 100644 --- a/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php +++ b/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php @@ -125,9 +125,9 @@ class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting { * * @since 4.3.0 * - * @param WP_Customize_Manager $manager Bootstrap Customizer instance. - * @param string $id An specific ID of the setting. Can be a - * theme mod or option name. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. + * @param string $id A specific ID of the setting. + * Can be a theme mod or option name. * @param array $args Optional. Setting arguments. * * @throws Exception If $id is not valid for this setting type. diff --git a/src/wp-includes/customize/class-wp-customize-new-menu-section.php b/src/wp-includes/customize/class-wp-customize-new-menu-section.php index dc335c3a3e..e9dc98fe3c 100644 --- a/src/wp-includes/customize/class-wp-customize-new-menu-section.php +++ b/src/wp-includes/customize/class-wp-customize-new-menu-section.php @@ -37,7 +37,7 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section { * @deprecated 4.9.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. - * @param string $id An specific ID of the section. + * @param string $id A specific ID of the section. * @param array $args Section arguments. */ public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { diff --git a/src/wp-includes/customize/class-wp-customize-selective-refresh.php b/src/wp-includes/customize/class-wp-customize-selective-refresh.php index be524bea19..822b1354c7 100644 --- a/src/wp-includes/customize/class-wp-customize-selective-refresh.php +++ b/src/wp-includes/customize/class-wp-customize-selective-refresh.php @@ -58,7 +58,7 @@ final class WP_Customize_Selective_Refresh { * * @since 4.5.0 * - * @param WP_Customize_Manager $manager Manager instance. + * @param WP_Customize_Manager $manager Customizer bootstrap instance. */ public function __construct( WP_Customize_Manager $manager ) { $this->manager = $manager;