Changeset 45960 for branches/4.0
- Timestamp:
- 09/04/2019 04:40:46 PM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/wp-admin/admin-ajax.php (modified) (1 diff)
-
src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-admin/admin-ajax.php
r29178 r45960 35 35 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 36 36 37 @header( 'Content-Type: text/ html; charset=' . get_option( 'blog_charset' ) );37 @header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); 38 38 @header( 'X-Robots-Tag: noindex' ); 39 39 -
branches/4.0/src/wp-admin/includes/ajax-actions.php
r44854 r45960 1852 1852 'data' => array( 1853 1853 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 1854 'filename' => $_FILES['async-upload']['name'],1854 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1855 1855 ) 1856 1856 ) ); … … 1867 1867 'data' => array( 1868 1868 'message' => $attachment_id->get_error_message(), 1869 'filename' => $_FILES['async-upload']['name'],1869 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1870 1870 ) 1871 1871 ) );
Note: See TracChangeset
for help on using the changeset viewer.