Changeset 45953
- Timestamp:
- 09/04/2019 04:36:50 PM (7 years ago)
- Location:
- branches/4.2
- 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.2
-
branches/4.2/src/wp-admin/async-upload.php
r31429 r45953 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.2/src/wp-admin/includes/ajax-actions.php
r44852 r45953 1861 1861 'data' => array( 1862 1862 'message' => __( "You don't have permission to upload files." ), 1863 'filename' => $_FILES['async-upload']['name'],1863 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1864 1864 ) 1865 1865 ) ); … … 1875 1875 'data' => array( 1876 1876 'message' => __( "You don't have permission to attach files to this post." ), 1877 'filename' => $_FILES['async-upload']['name'],1877 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1878 1878 ) 1879 1879 ) ); … … 1899 1899 'data' => array( 1900 1900 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 1901 'filename' => $_FILES['async-upload']['name'],1901 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1902 1902 ) 1903 1903 ) ); … … 1914 1914 'data' => array( 1915 1915 'message' => $attachment_id->get_error_message(), 1916 'filename' => $_FILES['async-upload']['name'],1916 'filename' => esc_html( $_FILES['async-upload']['name'] ), 1917 1917 ) 1918 1918 ) );
Note: See TracChangeset
for help on using the changeset viewer.