diff -Naur wordpress/wp-includes/class-wp-customize-manager.php wordpress/wp-includes/class-wp-customize-manager.php
|
|
|
3786 | 3786 | } |
3787 | 3787 | |
3788 | 3788 | /** |
| 3789 | * Deregister a customize panel type. |
| 3790 | * |
| 3791 | * @see WP_Customize_Panel |
| 3792 | * |
| 3793 | * @param string $panel Name of a custom panel which is a subclass of WP_Customize_Panel. |
| 3794 | */ |
| 3795 | public function deregister_panel_type( $panel ) { |
| 3796 | if ( ( $key = in_array( $panel, $this->registered_panel_types ) ) !== false ) { |
| 3797 | unset( $this->registered_panel_types[ $key ] ); |
| 3798 | } |
| 3799 | } |
| 3800 | |
| 3801 | /** |
3789 | 3802 | * Render JS templates for all registered panel types. |
3790 | 3803 | * |
3791 | 3804 | * @since 4.3.0 |
… |
… |
|
3870 | 3883 | } |
3871 | 3884 | |
3872 | 3885 | /** |
| 3886 | * Deregister a customize section type. |
| 3887 | * |
| 3888 | * @see WP_Customize_Section |
| 3889 | * |
| 3890 | * @param string $section Name of a custom section which is a subclass of WP_Customize_Section. |
| 3891 | */ |
| 3892 | public function deregister_section_type( $section ) { |
| 3893 | if ( ( $key = in_array( $section, $this->registered_section_types ) ) !== false ) { |
| 3894 | unset( $this->registered_section_types[ $key ] ); |
| 3895 | } |
| 3896 | } |
| 3897 | |
| 3898 | /** |
3873 | 3899 | * Render JS templates for all registered section types. |
3874 | 3900 | * |
3875 | 3901 | * @since 4.3.0 |
… |
… |
|
3960 | 3986 | } |
3961 | 3987 | |
3962 | 3988 | /** |
| 3989 | * Deregister a customize control type. |
| 3990 | * |
| 3991 | * @param string $control Name of a custom control which is a subclass of |
| 3992 | * WP_Customize_Control. |
| 3993 | */ |
| 3994 | public function deregister_control_type( $control ) { |
| 3995 | if ( ( $key = in_array( $control, $this->registered_control_types ) ) !== false ) { |
| 3996 | unset( $this->registered_control_types[ $key ] ); |
| 3997 | } |
| 3998 | } |
| 3999 | |
| 4000 | /** |
3963 | 4001 | * Render JS templates for all registered control types. |
3964 | 4002 | * |
3965 | 4003 | * @since 4.1.0 |