Changeset 45941 for branches/5.0/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/04/2019 04:25:25 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-admin/includes/ajax-actions.php
r44844 r45941 2069 2069 'data' => array( 2070 2070 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2071 'filename' => $_FILES['async-upload']['name'],2071 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2072 2072 ) 2073 2073 ) ); … … 2083 2083 'data' => array( 2084 2084 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2085 'filename' => $_FILES['async-upload']['name'],2085 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2086 2086 ) 2087 2087 ) ); … … 2107 2107 'data' => array( 2108 2108 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2109 'filename' => $_FILES['async-upload']['name'],2109 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2110 2110 ) 2111 2111 ) ); … … 2122 2122 'data' => array( 2123 2123 'message' => $attachment_id->get_error_message(), 2124 'filename' => $_FILES['async-upload']['name'],2124 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2125 2125 ) 2126 2126 ) );
Note: See TracChangeset
for help on using the changeset viewer.