Changeset 51154 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 06/15/2021 03:21:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r49992 r51154 3908 3908 // Removing core components this way is _doing_it_wrong(). 3909 3909 if ( in_array( $id, $this->components, true ) ) { 3910 $message = sprintf( 3911 /* translators: 1: Panel ID, 2: Link to 'customize_loaded_components' filter reference. */ 3912 __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ), 3913 $id, 3910 _doing_it_wrong( 3911 __METHOD__, 3914 3912 sprintf( 3915 '<a href="%1$s">%2$s</a>', 3916 esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ), 3917 '<code>customize_loaded_components</code>' 3918 ) 3913 /* translators: 1: Panel ID, 2: Link to 'customize_loaded_components' filter reference. */ 3914 __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ), 3915 $id, 3916 sprintf( 3917 '<a href="%1$s">%2$s</a>', 3918 esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ), 3919 '<code>customize_loaded_components</code>' 3920 ) 3921 ), 3922 '4.5.0' 3919 3923 ); 3920 3921 _doing_it_wrong( __METHOD__, $message, '4.5.0' );3922 3924 } 3923 3925 unset( $this->panels[ $id ] );
Note: See TracChangeset
for help on using the changeset viewer.