Make WordPress Core

Changeset 57407

Timestamp:
01/30/2024 03:04:36 PM (5 months ago)
Author:
jorbin
Message:

Grouped Backports to the 4.8 branch.

  • Install: When populating options, maybe_serialize instead of always serialize.
  • Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 4.8 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.

Location:
branches/4.8
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-admin/includes/class-file-upload-upgrader.php

    r38524 r57407  
    6868                wp_die( $file['error'] );
    6969
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
    7094            $this->filename = $_FILES[$form]['name'];
    7195            $this->package = $file['file'];
  • branches/4.8/src/wp-admin/includes/schema.php

    r40406 r57407  
    547547            $autoload = 'yes';
    548548
    549         if ( is_array($value) )
    550             $value = serialize($value);
    551549        if ( !empty($insert) )
    552550            $insert .= ', ';
     551
     552
     553
    553554        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    554555    }
  • branches/4.8/src/wp-admin/update.php

    r38470 r57407  
    147147        check_admin_referer('plugin-upload');
    148148
     149
     150
     151
     152
    149153        $file_upload = new File_Upload_Upgrader('pluginzip', 'package');
    150154
     
    251255
    252256        check_admin_referer('theme-upload');
     257
     258
     259
     260
    253261
    254262        $file_upload = new File_Upload_Upgrader('themezip', 'package');
Note: See TracChangeset for help on using the changeset viewer.