Make WordPress Core

Changeset 57397

Timestamp:
01/30/2024 02:45:47 PM (6 months ago)
Author:
jorbin
Message:

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

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

Location:
branches/5.8
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

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

    r47122 r57397  
    6969            }
    7070
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
    7195            $this->filename = $_FILES[ $form ]['name'];
    7296            $this->package  = $file['file'];
  • branches/5.8/src/wp-admin/includes/schema.php

    r51266 r57397  
    588588        }
    589589
    590         if ( is_array( $value ) ) {
    591             $value = serialize( $value );
    592         }
    593 
    594590        if ( ! empty( $insert ) ) {
    595591            $insert .= ', ';
    596592        }
     593
     594
    597595
    598596        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
  • branches/5.8/src/wp-admin/update.php

    r48417 r57397  
    151151
    152152        check_admin_referer( 'plugin-upload' );
     153
     154
     155
     156
    153157
    154158        $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' );
     
    293297
    294298        check_admin_referer( 'theme-upload' );
     299
     300
     301
     302
    295303
    296304        $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset for help on using the changeset viewer.