Make WordPress Core

Ticket #39173: 39173.patch

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

     
    15611561                 * that the user's session has expired and they need to re-authenticate.
    15621562                 */
    15631563                if ( $this->messenger_channel && ! current_user_can( 'customize' ) ) {
    1564                         $this->wp_die( -1, __( 'Unauthorized. You may remove 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.' ) );
    15651565                        return;
    15661566                }
    15671567
     
    19861986                                continue;
    19871987                        }
    19881988                        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.' ) );
    19901990                        } else {
    19911991                                if ( is_null( $unsanitized_value ) ) {
    19921992                                        continue;