| @@ -455,10 +455,10 @@ | ||
| 455 | 455 | ); |
| 456 | 456 | ?> |
| 457 | 457 | </td> |
| 458 | 458 | <td> |
| 459 | - <a href="javascript:wpsc_get_edit_wh_exception(<?php echo esc_attr( $exception->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_edit_wh_exception' ) ); ?>');" class="wpsc-link"><?php esc_attr_e( 'Edit', 'supportcandy' ); ?></a> | | |
| 460 | - <a href="javascript:wpsc_delete_wh_exception(<?php echo esc_attr( $exception->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_delete_wh_exception' ) ); ?>');" class="wpsc-link"><?php esc_attr_e( 'Delete', 'supportcandy' ); ?></a> | |
| 459 | + <span class="wpsc-link" onclick="wpsc_get_edit_wh_exception(<?php echo esc_attr( $exception->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_get_edit_wh_exception' ) ); ?>');"><?php esc_attr_e( 'Edit', 'supportcandy' ); ?></span> | | |
| 460 | + <span class="wpsc-link" onclick="wpsc_delete_wh_exception(<?php echo esc_attr( $exception->id ); ?>, '<?php echo esc_attr( wp_create_nonce( 'wpsc_delete_wh_exception' ) ); ?>');"><?php esc_attr_e( 'Delete', 'supportcandy' ); ?></span> | |
| 461 | 461 | </td> |
| 462 | 462 | </tr> |
| 463 | 463 | <?php |
| 464 | 464 | endforeach; |
| @@ -632,9 +632,9 @@ | ||
| 632 | 632 | */ |
| 633 | 633 | public static function set_add_exception() { |
| 634 | 634 | |
| 635 | 635 | if ( check_ajax_referer( 'wpsc_set_add_wh_exception', '_ajax_nonce', false ) != 1 ) { |
| 636 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 636 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 637 | 637 | } |
| 638 | 638 | |
| 639 | 639 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 640 | 640 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |
| @@ -717,9 +717,9 @@ | ||
| 717 | 717 | */ |
| 718 | 718 | public static function get_edit_wh_exception() { |
| 719 | 719 | |
| 720 | 720 | if ( check_ajax_referer( 'wpsc_get_edit_wh_exception', '_ajax_nonce', false ) != 1 ) { |
| 721 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 721 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 722 | 722 | } |
| 723 | 723 | |
| 724 | 724 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 725 | 725 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |
| @@ -856,9 +856,9 @@ | ||
| 856 | 856 | */ |
| 857 | 857 | public static function set_edit_wh_exception() { |
| 858 | 858 | |
| 859 | 859 | if ( check_ajax_referer( 'wpsc_set_edit_wh_exception', '_ajax_nonce', false ) != 1 ) { |
| 860 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 860 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 864 | 864 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |
| @@ -924,9 +924,9 @@ | ||
| 924 | 924 | */ |
| 925 | 925 | public static function delete_wh_exception() { |
| 926 | 926 | |
| 927 | 927 | if ( check_ajax_referer( 'wpsc_delete_wh_exception', '_ajax_nonce', false ) != 1 ) { |
| 928 | - wp_send_json_error( 'Unauthorised request!', 401 ); | |
| 928 | + wp_send_json_error( 'Unauthorized request!', 401 ); | |
| 929 | 929 | } |
| 930 | 930 | |
| 931 | 931 | if ( ! WPSC_Functions::is_site_admin() ) { |
| 932 | 932 | wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ), 401 ); |