Changeset 38673
- Timestamp:
- 09/29/2016 01:20:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r38672 r38673 284 284 return new WP_Error( 'upload_error', $file['error'] ); 285 285 286 $name = pathinfo( $_FILES[$file_id]['name'], PATHINFO_FILENAME ); 286 $name = $_FILES[$file_id]['name']; 287 $ext = pathinfo( $name, PATHINFO_EXTENSION ); 288 $name = wp_basename( $name, ".$ext" ); 287 289 288 290 $url = $file['url'];
Note: See TracChangeset
for help on using the changeset viewer.