includes/admin/class-wc-admin-webhooks.php 2 locations
|
@@ 127-129 (lines=3) @@
|
| 124 |
|
* Save method. |
| 125 |
|
*/ |
| 126 |
|
private function save() { |
| 127 |
|
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) { |
| 128 |
|
wp_die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
$webhook_id = absint( $_POST['webhook_id'] ); |
| 132 |
|
|
|
@@ 264-266 (lines=3) @@
|
| 261 |
|
* Bulk actions. |
| 262 |
|
*/ |
| 263 |
|
private function bulk_actions() { |
| 264 |
|
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) { |
| 265 |
|
wp_die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
if ( ! current_user_can( 'edit_shop_webhooks' ) ) { |
| 269 |
|
wp_die( __( 'You don\'t have permissions to edit Webhooks!', 'woocommerce' ) ); |
includes/admin/class-wc-admin-settings.php 1 location
|
@@ 74-76 (lines=3) @@
|
| 71 |
|
public static function save() { |
| 72 |
|
global $current_tab; |
| 73 |
|
|
| 74 |
|
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) { |
| 75 |
|
die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// Trigger actions |
| 79 |
|
do_action( 'woocommerce_settings_save_' . $current_tab ); |
includes/admin/class-wc-admin-status.php 1 location
|
@@ 366-368 (lines=3) @@
|
| 363 |
|
* Remove/delete the chosen file. |
| 364 |
|
*/ |
| 365 |
|
public static function remove_log() { |
| 366 |
|
if ( empty( $_REQUEST[ '_wpnonce' ] ) || ! wp_verify_nonce( $_REQUEST[ '_wpnonce' ], 'remove_log' ) ) { |
| 367 |
|
wp_die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); |
| 368 |
|
} |
| 369 |
|
|
| 370 |
|
if ( ! empty( $_REQUEST[ 'handle' ] ) ) { |
| 371 |
|
$logger = new WC_Logger(); |
includes/admin/class-wc-admin-api-keys.php 1 location
|
@@ 149-151 (lines=3) @@
|
| 146 |
|
* Bulk actions. |
| 147 |
|
*/ |
| 148 |
|
private function bulk_actions() { |
| 149 |
|
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-settings' ) ) { |
| 150 |
|
wp_die( __( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) ); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
$keys = array_map( 'absint', (array) $_GET['key'] ); |
| 154 |
|
|