Make WordPress Core

Changeset 57410

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

Grouped Backports to the 4.5 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.5 branch.

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

Location:
branches/4.5
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

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

    r38526 r57410  
    26262626            if ( isset( $file['error'] ) )
    26272627                wp_die( $file['error'] );
     2628
     2629
     2630
     2631
     2632
     2633
     2634
     2635
     2636
     2637
     2638
     2639
     2640
     2641
     2642
     2643
     2644
     2645
     2646
     2647
     2648
     2649
     2650
     2651
    26282652
    26292653            $this->filename = $_FILES[$form]['name'];
  • branches/4.5/src/wp-admin/includes/schema.php

    r36654 r57410  
    552552            $autoload = 'yes';
    553553
    554         if ( is_array($value) )
    555             $value = serialize($value);
    556554        if ( !empty($insert) )
    557555            $insert .= ', ';
     556
     557
     558
    558559        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    559560    }
  • branches/4.5/src/wp-admin/update.php

    r34598 r57410  
    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.