Make WordPress Core

Changeset 57403

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

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

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

Location:
branches/5.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

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

    r42343 r57403  
    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.2/src/wp-admin/includes/schema.php

    r44976 r57403  
    577577        }
    578578
    579         if ( is_array( $value ) ) {
    580             $value = serialize( $value );
    581         }
    582579        if ( ! empty( $insert ) ) {
    583580            $insert .= ', ';
    584581        }
     582
     583
     584
    585585        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
    586586    }
  • branches/5.2/src/wp-admin/update.php

    r43571 r57403  
    146146
    147147        check_admin_referer( 'plugin-upload' );
     148
     149
     150
     151
    148152
    149153        $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' );
     
    263267
    264268        check_admin_referer( 'theme-upload' );
     269
     270
     271
     272
    265273
    266274        $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset for help on using the changeset viewer.