| @@ -470,9 +470,9 @@ | ||
| 470 | 470 | */ |
| 471 | 471 | public static function get_company_holiday_actions() { |
| 472 | 472 | |
| 473 | 473 | if ( check_ajax_referer( 'wpsc_get_company_holiday_actions', '_ajax_nonce', false ) != 1 ) { |
| 474 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 474 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 478 | 478 | wp_send_json_error( 'Unauthorized', 400 ); |
| @@ -553,9 +553,9 @@ | ||
| 553 | 553 | */ |
| 554 | 554 | public static function set_company_holiday_actions() { |
| 555 | 555 | |
| 556 | 556 | if ( check_ajax_referer( 'wpsc_set_company_holiday_actions', '_ajax_nonce', false ) != 1 ) { |
| 557 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 557 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 558 | 558 | } |
| 559 | 559 | |
| 560 | 560 | global $wpdb; |
| 561 | 561 | |