WordPress.org

Make WordPress Core

Ticket #14530: 14530.diff

File 14530.diff, 514 bytes (added by kraftbj, 4 years ago)

Update the error message for the Customizer

  • src/wp-admin/customize.php

     
    1313require_once( dirname( __FILE__ ) . '/admin.php' ); 
    1414 
    1515if ( ! current_user_can( 'edit_theme_options' ) ) 
    16         wp_die( __( 'Cheatin’ uh?' ) ); 
     16        wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); 
    1717 
    1818wp_reset_vars( array( 'url', 'return' ) ); 
    1919$url = urldecode( $url );