|
@@ 679-681 (lines=3) @@
|
| 676 |
|
*/ |
| 677 |
|
do_action( 'jp_carousel_check_blog_user_privileges' ); |
| 678 |
|
|
| 679 |
|
if ( empty( $_REQUEST['nonce'] ) || ! wp_verify_nonce( $_REQUEST['nonce'], 'carousel_nonce' ) ) { |
| 680 |
|
die( wp_json_encode( array( 'error' => __( 'Nonce verification failed.', 'jetpack' ) ) ) ); |
| 681 |
|
} |
| 682 |
|
|
| 683 |
|
$attachment_id = ( isset( $_REQUEST['id'] ) ) ? (int) $_REQUEST['id'] : 0; |
| 684 |
|
$offset = ( isset( $_REQUEST['offset'] ) ) ? (int) $_REQUEST['offset'] : 0; |
|
@@ 732-734 (lines=3) @@
|
| 729 |
|
header( 'Content-type: text/javascript' ); |
| 730 |
|
} |
| 731 |
|
|
| 732 |
|
if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'carousel_nonce' ) ) { |
| 733 |
|
die( wp_json_encode( array( 'error' => __( 'Nonce verification failed.', 'jetpack' ) ) ) ); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
$_blog_id = (int) $_POST['blog_id']; |
| 737 |
|
$_post_id = (int) $_POST['id']; |