Make WordPress Core

Ticket #50760: 50760.patch

File 50760.patch, 815 bytes (added by ramiy, 6 years ago)
  • wp-includes/class-wp-customize-manager.php

     
    19071907                 * that the user's session has expired and they need to re-authenticate.
    19081908                 */
    19091909                if ( $this->messenger_channel && ! current_user_can( 'customize' ) ) {
    1910                         $this->wp_die( -1, __( 'Unauthorized. You may remove the customize_messenger_channel param to preview as frontend.' ) );
     1910                        $this->wp_die(
     1911                                -1,
     1912                                sprintf(
     1913                                        /* translators: %s: customize_messenger_channel */
     1914                                        __( 'Unauthorized. You may remove the %s param to preview as frontend.' ),
     1915                                        '<code>customize_messenger_channel<code>'
     1916                                )
     1917                        );
    19111918                        return;
    19121919                }
    19131920