← All changes
|
includes/admin/misc/class-wpsc-option-controller.php
+2
-2
3.3.9
→
3.5.4
View file →
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | */ |
| 24 | 24 | public static function add_new() { |
| 25 | 25 | |
| 26 | 26 | if ( check_ajax_referer( 'wpsc_add_new_option', '_ajax_nonce', false ) !== 1 ) { |
| 27 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 27 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 31 | 31 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | */ |
| 58 | 58 | public static function update_option() { |
| 59 | 59 | |
| 60 | 60 | if ( check_ajax_referer( 'wpsc_set_edit_option', '_ajax_nonce', false ) !== 1 ) { |
| 61 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 61 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 65 | 65 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |