Make WordPress Core

Changeset 57406

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

Grouped Backports to the 4.9 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.9 branch.

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

Location:
branches/4.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r41289 r57406  
    6464                wp_die( $file['error'] );
    6565
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
    6690            $this->filename = $_FILES[$form]['name'];
    6791            $this->package = $file['file'];
  • branches/4.9/src/wp-admin/includes/schema.php

    r43532 r57406  
    553553            $autoload = 'yes';
    554554
    555         if ( is_array($value) )
    556             $value = serialize($value);
    557555        if ( !empty($insert) )
    558556            $insert .= ', ';
     557
     558
     559
    559560        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    560561    }
  • branches/4.9/src/wp-admin/update.php

    r41797 r57406  
    147147        check_admin_referer('plugin-upload');
    148148
     149
     150
     151
     152
    149153        $file_upload = new File_Upload_Upgrader('pluginzip', 'package');
    150154
     
    249253
    250254        check_admin_referer('theme-upload');
     255
     256
     257
     258
    251259
    252260        $file_upload = new File_Upload_Upgrader('themezip', 'package');
Note: See TracChangeset for help on using the changeset viewer.