WordPress.org

Make WordPress Core

Ticket #44038: 44038.patch

File 44038.patch, 1.1 KB (added by mrTall, 16 months ago)

On this diff it store only filename, cuz we have full path through $exports_dir = wp_privacy_exports_dir();

  • src/wp-admin/includes/file.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    21342134         */
    21352135        $error            = false;
    21362136        $archive_url      = get_post_meta( $request_id, '_export_file_url', true );
    2137         $archive_pathname = get_post_meta( $request_id, '_export_file_path', true );
     2137        $archive_pathname = $exports_dir . get_post_meta( $request_id, '_export_file_path', true );
    21382138
    21392139        if ( empty( $archive_pathname ) || empty( $archive_url ) ) {
    21402140                $archive_filename = $file_basename . '.zip';
     
    21422142                $archive_url      = $exports_url . $archive_filename;
    21432143
    21442144                update_post_meta( $request_id, '_export_file_url', $archive_url );
    2145                 update_post_meta( $request_id, '_export_file_path', wp_normalize_path( $archive_pathname ) );
     2145                update_post_meta( $request_id, '_export_file_path', $archive_filename );
    21462146        }
    21472147
    21482148        if ( ! empty( $archive_pathname ) && file_exists( $archive_pathname ) ) {