Changeset 11858 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 02/15/2018 03:52:40 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-avatars.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r11670 r11858 810 810 */ 811 811 function bp_avatar_ajax_delete() { 812 // Bail if not a POST action. 813 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { 812 if ( ! bp_is_post_request() ) { 814 813 wp_send_json_error(); 815 814 } … … 953 952 */ 954 953 function bp_avatar_ajax_upload() { 955 // Bail if not a POST action. 956 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { 954 if ( ! bp_is_post_request() ) { 957 955 wp_die(); 958 956 } … … 1238 1236 */ 1239 1237 function bp_avatar_ajax_set() { 1240 // Bail if not a POST action. 1241 if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { 1238 if ( ! bp_is_post_request() ) { 1242 1239 wp_send_json_error(); 1243 1240 }
Note: See TracChangeset
for help on using the changeset viewer.