Changeset 38294 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 08/20/2016 11:35:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r38029 r38294 285 285 return new WP_Error( 'upload_error', $file['error'] ); 286 286 287 $name_parts = pathinfo($name); 288 $name = trim( substr( $name, 0, -(1 + strlen($name_parts['extension'])) ) ); 287 $basename = pathinfo( $name, PATHINFO_BASENAME ); 289 288 290 289 $url = $file['url']; 291 290 $type = $file['type']; 292 291 $file = $file['file']; 293 $title = $ name;292 $title = $basename; 294 293 $content = ''; 295 294 $excerpt = '';
Note: See TracChangeset
for help on using the changeset viewer.