Changeset 45955 for branches/4.1
- Timestamp:
- 09/04/2019 04:37:15 PM (7 years ago)
- Location:
- branches/4.1
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/wp-admin/async-upload.php (modified) (1 diff)
-
src/wp-admin/includes/ajax-actions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/async-upload.php
r31430 r45955 33 33 require_once( ABSPATH . 'wp-admin/admin.php' ); 34 34 35 header( 'Content-Type: text/ html; charset=' . get_option( 'blog_charset' ) );35 header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); 36 36 37 37 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { -
branches/4.1/src/wp-admin/includes/ajax-actions.php
r44853 r45955 1848 1848 'data' => array( 1849 1849 'message' => __( "You don't have permission to upload files." ), 1850 'filename' => $_FILES['async-upload']['name'],1850 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1851 1851 ) 1852 1852 ) ); … … 1862 1862 'data' => array( 1863 1863 'message' => __( "You don't have permission to attach files to this post." ), 1864 'filename' => $_FILES['async-upload']['name'],1864 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1865 1865 ) 1866 1866 ) ); … … 1886 1886 'data' => array( 1887 1887 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 1888 'filename' => $_FILES['async-upload']['name'],1888 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1889 1889 ) 1890 1890 ) ); … … 1901 1901 'data' => array( 1902 1902 'message' => $attachment_id->get_error_message(), 1903 'filename' => $_FILES['async-upload']['name'],1903 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1904 1904 ) 1905 1905 ) );
Note: See TracChangeset
for help on using the changeset viewer.