diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index e556f5ee27..66fb7ff24f 100644
--- a/src/wp-includes/class-wp-customize-manager.php
+++ b/src/wp-includes/class-wp-customize-manager.php
@@ -1202,13 +1202,16 @@ final class WP_Customize_Manager {
'widgets',
'nav_menus',
);
+
if ( in_array( $id, $core_panels, true ) ) {
- $url = 'https://core.trac.wordpress.org/ticket/33552#comment:12';
- _doing_it_wrong(
- __METHOD__,
- sprintf( __( 'Removing %1$s manually will cause PHP warnings. Use the customize_loaded_components filter instead. See %2$s.' ), $id, $url ),
- '4.5'
+ /* translators: 1: panel id, 2: filter reference URL, 3: filter name */
+ $message = sprintf( __( 'Removing %1$s manually will cause PHP warnings. Use the %3$s filter instead.' ),
+ $id,
+ esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ),
+ 'customize_loaded_components'
);
+
+ _doing_it_wrong( __METHOD__, $message, '4.5' );
}
unset( $this->panels[ $id ] );
}