Changeset 44295 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/18/2018 09:31:14 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 44047
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/includes/ajax-actions.php
r44153 r44295 2263 2263 } 2264 2264 2265 $post_data = isset( $_REQUEST['post_data'] ) ? $_REQUEST['post_data'] : array(); 2265 $post_data = ! empty( $_REQUEST['post_data'] ) ? _wp_get_allowed_postdata( _wp_translate_postdata( false, (array) $_REQUEST['post_data'] ) ) : array(); 2266 2267 if ( is_wp_error( $post_data ) ) { 2268 wp_die( $post_data->get_error_message() ); 2269 } 2266 2270 2267 2271 // If the context is custom header or background, make sure the uploaded file is an image.
Note: See TracChangeset
for help on using the changeset viewer.