Make WordPress Core

Ticket #35992: 35992.patch

File 35992.patch, 1.2 KB (added by ramiy, 9 years ago)
  • wp-includes/class-wp-customize-manager.php

     
    12151215        public function remove_panel( $id ) {
    12161216                // Removing core components this way is _doing_it_wrong().
    12171217                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.' ),
    12201221                                $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>'
    12231223                        );
    12241224
    12251225                        _doing_it_wrong( __METHOD__, $message, '4.5' );