diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index decf0b87cf..e697043606 100644
|
|
|
final class WP_Customize_Manager {
|
| 3796 | 3796 | * @since 3.4.0 |
| 3797 | 3797 | * |
| 3798 | 3798 | * @param string $id Customize Setting ID. |
| | 3799 | * @return WP_Customize_Setting|null The removed setting object, if any. |
| 3799 | 3800 | */ |
| 3800 | 3801 | public function remove_setting( $id ) { |
| | 3802 | $setting = $this->get_setting( $id ); |
| 3801 | 3803 | unset( $this->settings[ $id ] ); |
| | 3804 | return $setting; |
| 3802 | 3805 | } |
| 3803 | 3806 | |
| 3804 | 3807 | /** |
| … |
… |
final class WP_Customize_Manager {
|
| 3852 | 3855 | * @since 4.0.0 |
| 3853 | 3856 | * |
| 3854 | 3857 | * @param string $id Panel ID to remove. |
| | 3858 | * @return WP_Customize_Panel|null The removed panel object, if any. |
| 3855 | 3859 | */ |
| 3856 | 3860 | public function remove_panel( $id ) { |
| 3857 | 3861 | // Removing core components this way is _doing_it_wrong(). |
| … |
… |
final class WP_Customize_Manager {
|
| 3865 | 3869 | |
| 3866 | 3870 | _doing_it_wrong( __METHOD__, $message, '4.5.0' ); |
| 3867 | 3871 | } |
| | 3872 | |
| | 3873 | $panel = $this->get_panel( $id ); |
| 3868 | 3874 | unset( $this->panels[ $id ] ); |
| | 3875 | return $panel; |
| 3869 | 3876 | } |
| 3870 | 3877 | |
| 3871 | 3878 | /** |
| … |
… |
final class WP_Customize_Manager {
|
| 3948 | 3955 | * @since 3.4.0 |
| 3949 | 3956 | * |
| 3950 | 3957 | * @param string $id Section ID. |
| | 3958 | * @return WP_Customize_Section|null The removed section object, if any. |
| 3951 | 3959 | */ |
| 3952 | 3960 | public function remove_section( $id ) { |
| | 3961 | $section = $this->get_section( $id ); |
| 3953 | 3962 | unset( $this->sections[ $id ] ); |
| | 3963 | return $section; |
| 3954 | 3964 | } |
| 3955 | 3965 | |
| 3956 | 3966 | /** |
| … |
… |
final class WP_Customize_Manager {
|
| 4040 | 4050 | * @since 3.4.0 |
| 4041 | 4051 | * |
| 4042 | 4052 | * @param string $id ID of the control. |
| | 4053 | * @return WP_Customize_Control|null The removed control object, if any. |
| 4043 | 4054 | */ |
| 4044 | 4055 | public function remove_control( $id ) { |
| | 4056 | $control = $this->get_control( $id ); |
| 4045 | 4057 | unset( $this->controls[ $id ] ); |
| | 4058 | return $control; |
| 4046 | 4059 | } |
| 4047 | 4060 | |
| 4048 | 4061 | /** |