From f1124fc1cbd626e3d137e4a9fe5a517f29f4b5a1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2020 17:48:40 +0000 Subject: [PATCH] Docs: Clarify in `WP_Customize_Manager::remove_*()` methods that removing a setting, panel, section, or control does not destroy the class instance or remove its filters. Props dlh, fgiannar, jon81, westonruter. Fixes #48747. git-svn-id: https://develop.svn.wordpress.org/trunk@47367 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index daee794100..d928918147 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -3799,6 +3799,8 @@ final class WP_Customize_Manager { /** * Remove a customize setting. * + * Note that removing the setting doesn't destroy the WP_Customize_Setting instance or remove its filters. + * * @since 3.4.0 * * @param string $id Customize Setting ID. @@ -3855,6 +3857,8 @@ final class WP_Customize_Manager { /** * Remove a customize panel. * + * Note that removing the panel doesn't destroy the WP_Customize_Panel instance or remove its filters. + * * @since 4.0.0 * * @param string $id Panel ID to remove. @@ -3951,6 +3955,8 @@ final class WP_Customize_Manager { /** * Remove a customize section. * + * Note that removing the section doesn't destroy the WP_Customize_Section instance or remove its filters. + * * @since 3.4.0 * * @param string $id Section ID. @@ -4026,6 +4032,8 @@ final class WP_Customize_Manager { /** * Remove a customize control. * + * Note that removing the control doesn't destroy the WP_Customize_Control instance or remove its filters. + * * @since 3.4.0 * * @param string $id ID of the control.