Changeset 44785 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 03/01/2019 08:57:26 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/media.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r44634 r44785 435 435 $type = $file['type']; 436 436 $file = $file['file']; 437 $title = preg_replace( '/\.[^.]+$/', '', basename( $file ) );437 $title = preg_replace( '/\.[^.]+$/', '', wp_basename( $file ) ); 438 438 $content = ''; 439 439 … … 827 827 $title = esc_html( wp_unslash( $_POST['title'] ) ); 828 828 if ( empty( $title ) ) { 829 $title = esc_html( basename( $src ) );829 $title = esc_html( wp_basename( $src ) ); 830 830 } 831 831 … … 931 931 932 932 $file_array = array(); 933 $file_array['name'] = basename( $matches[0] );933 $file_array['name'] = wp_basename( $matches[0] ); 934 934 935 935 // Download file to temp location.
Note: See TracChangeset
for help on using the changeset viewer.