@@ 26-29 (lines=4) @@ | ||
23 | $response = array(); |
|
24 | ||
25 | // screen_id is the same as $current_screen->id and the JS global 'pagenow'. |
|
26 | if ( ! empty($_POST['screen_id']) ) |
|
27 | $screen_id = sanitize_key($_POST['screen_id']); |
|
28 | else |
|
29 | $screen_id = 'front'; |
|
30 | ||
31 | if ( ! empty($_POST['data']) ) { |
|
32 | $data = wp_unslash( (array) $_POST['data'] ); |
|
@@ 2735-2739 (lines=5) @@ | ||
2732 | $nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' ); |
|
2733 | ||
2734 | // screen_id is the same as $current_screen->id and the JS global 'pagenow'. |
|
2735 | if ( ! empty( $_POST['screen_id'] ) ) { |
|
2736 | $screen_id = sanitize_key($_POST['screen_id']); |
|
2737 | } else { |
|
2738 | $screen_id = 'front'; |
|
2739 | } |
|
2740 | ||
2741 | if ( ! empty( $_POST['data'] ) ) { |
|
2742 | $data = wp_unslash( (array) $_POST['data'] ); |