Changeset 11858 for trunk/src/bp-core/bp-core-attachments.php
- Timestamp:
- 02/15/2018 03:52:40 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-attachments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-attachments.php
r11841 r11858 1190 1190 */ 1191 1191 function bp_attachments_cover_image_ajax_upload() { 1192 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD']) ) {1192 if ( ! bp_is_post_request() ) { 1193 1193 wp_die(); 1194 1194 } … … 1379 1379 */ 1380 1380 function bp_attachments_cover_image_ajax_delete() { 1381 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD']) ) {1381 if ( ! bp_is_post_request() ) { 1382 1382 wp_send_json_error(); 1383 1383 }
Note: See TracChangeset
for help on using the changeset viewer.