Changeset 44060 for branches/4.5/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/13/2018 01:44:41 AM (7 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/ajax-actions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/branches/5.0 merged: 44047
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-admin/includes/ajax-actions.php
r37791 r44060 2027 2027 } 2028 2028 2029 $post_data = isset( $_REQUEST['post_data'] ) ? $_REQUEST['post_data'] : array(); 2029 $post_data = ! empty( $_REQUEST['post_data'] ) ? _wp_get_allowed_postdata( _wp_translate_postdata( false, (array) $_REQUEST['post_data'] ) ) : array(); 2030 2031 if ( is_wp_error( $post_data ) ) { 2032 wp_die( $post_data->get_error_message() ); 2033 } 2030 2034 2031 2035 // 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.