Make WordPress Core

Changeset 57412

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

Grouped Backports to the 4.3 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.3 branch.

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

Location:
branches/4.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-admin/includes/class-wp-upgrader.php

    r38528 r57412  
    24312431            if ( isset( $file['error'] ) )
    24322432                wp_die( $file['error'] );
     2433
     2434
     2435
     2436
     2437
     2438
     2439
     2440
     2441
     2442
     2443
     2444
     2445
     2446
     2447
     2448
     2449
     2450
     2451
     2452
     2453
     2454
     2455
     2456
    24332457
    24342458            $this->filename = $_FILES[$form]['name'];
  • branches/4.3/src/wp-admin/includes/schema.php

    r33621 r57412  
    530530            $autoload = 'yes';
    531531
    532         if ( is_array($value) )
    533             $value = serialize($value);
    534532        if ( !empty($insert) )
    535533            $insert .= ', ';
     534
     535
     536
    536537        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    537538    }
  • branches/4.3/src/wp-admin/update.php

    r31994 r57412  
    130130        check_admin_referer('plugin-upload');
    131131
     132
     133
     134
     135
    132136        $file_upload = new File_Upload_Upgrader('pluginzip', 'package');
    133137
     
    234238
    235239        check_admin_referer('theme-upload');
     240
     241
     242
     243
    236244
    237245        $file_upload = new File_Upload_Upgrader('themezip', 'package');
Note: See TracChangeset for help on using the changeset viewer.