Ticket #39173: 39173.patch
File 39173.patch, 1.1 KB (added by , 9 years ago) |
---|
-
wp-includes/class-wp-customize-manager.php
1561 1561 * that the user's session has expired and they need to re-authenticate. 1562 1562 */ 1563 1563 if ( $this->messenger_channel && ! current_user_can( 'customize' ) ) { 1564 $this->wp_die( -1, __( ' Unauthorized. You mayremove the customize_messenger_channel param to preview as frontend.' ) );1564 $this->wp_die( -1, __( 'Sorry, you are not allowed to remove the customize_messenger_channel param to preview as frontend.' ) ); 1565 1565 return; 1566 1566 } 1567 1567 … … 1986 1986 continue; 1987 1987 } 1988 1988 if ( $options['validate_capability'] && ! current_user_can( $setting->capability ) ) { 1989 $validity = new WP_Error( 'unauthorized', __( ' Unauthorized to modify setting due to capability.' ) );1989 $validity = new WP_Error( 'unauthorized', __( 'Sorry, you are not allowed to modify setting.' ) ); 1990 1990 } else { 1991 1991 if ( is_null( $unsanitized_value ) ) { 1992 1992 continue;