Ticket #50760: 50760.patch
| File 50760.patch, 815 bytes (added by , 6 years ago) |
|---|
-
wp-includes/class-wp-customize-manager.php
1907 1907 * that the user's session has expired and they need to re-authenticate. 1908 1908 */ 1909 1909 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 ); 1911 1918 return; 1912 1919 } 1913 1920