Ticket #35992: 35992.patch
File 35992.patch, 1.2 KB (added by , 9 years ago) |
---|
-
wp-includes/class-wp-customize-manager.php
1215 1215 public function remove_panel( $id ) { 1216 1216 // Removing core components this way is _doing_it_wrong(). 1217 1217 if ( in_array( $id, $this->components, true ) ) { 1218 /* translators: 1: panel id, 2: filter reference URL, 3: filter name */ 1219 $message = sprintf( __( 'Removing %1$s manually will cause PHP warnings. Use the <a href="%2$s">%3$s</a> filter instead.' ), 1218 $message = sprintf( 1219 /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */ 1220 __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ), 1220 1221 $id, 1221 esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ), 1222 '<code>customize_loaded_components</code>' 1222 '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>' 1223 1223 ); 1224 1224 1225 1225 _doing_it_wrong( __METHOD__, $message, '4.5' );