Changeset 44785 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 03/01/2019 08:57:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r44714 r44785 1361 1361 1362 1362 // Copy file to temp location so that original file won't get deleted from theme after sideloading. 1363 $temp_file_name = wp_tempnam( basename( $file_path ) );1363 $temp_file_name = wp_tempnam( wp_basename( $file_path ) ); 1364 1364 if ( $temp_file_name && copy( $file_path, $temp_file_name ) ) { 1365 1365 $file_array['tmp_name'] = $temp_file_name; … … 1622 1622 continue; 1623 1623 } 1624 $file_name = basename( $attachment['file'] );1624 $file_name = wp_basename( $attachment['file'] ); 1625 1625 1626 1626 // Skip file types that are not recognized. … … 4595 4595 if ( $this->return_url ) { 4596 4596 $return_url = $this->return_url; 4597 } elseif ( $referer && ! in_array( basename( parse_url( $referer, PHP_URL_PATH ) ), $excluded_referer_basenames, true ) ) {4597 } elseif ( $referer && ! in_array( wp_basename( parse_url( $referer, PHP_URL_PATH ) ), $excluded_referer_basenames, true ) ) { 4598 4598 $return_url = $referer; 4599 4599 } elseif ( $this->preview_url ) {
Note: See TracChangeset
for help on using the changeset viewer.