Make WordPress Core

Changeset 57413

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

Grouped Backports to the 4.2 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.2 branch.

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

Location:
branches/4.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

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

    r38529 r57413  
    22972297            if ( isset( $file['error'] ) )
    22982298                wp_die( $file['error'] );
     2299
     2300
     2301
     2302
     2303
     2304
     2305
     2306
     2307
     2308
     2309
     2310
     2311
     2312
     2313
     2314
     2315
     2316
     2317
     2318
     2319
     2320
     2321
     2322
    22992323
    23002324            $this->filename = $_FILES[$form]['name'];
  • branches/4.2/src/wp-admin/includes/schema.php

    r31403 r57413  
    521521            $autoload = 'yes';
    522522
    523         if ( is_array($value) )
    524             $value = serialize($value);
    525523        if ( !empty($insert) )
    526524            $insert .= ', ';
     525
     526
     527
    527528        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    528529    }
  • branches/4.2/src/wp-admin/update.php

    r31994 r57413  
    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.