Make WordPress Core


Ignore:
Timestamp:
01/30/2024 02:43:15 PM (17 months ago)
Author:
jorbin
Message:

Grouped Backports to the 5.9 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.9 branch.

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

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-admin/includes/schema.php

    r52215 r57396  
    588588        }
    589589
    590         if ( is_array( $value ) ) {
    591             $value = serialize( $value );
    592         }
    593 
    594590        if ( ! empty( $insert ) ) {
    595591            $insert .= ', ';
    596592        }
     593
     594        $value = maybe_serialize( sanitize_option( $option, $value ) );
    597595
    598596        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
Note: See TracChangeset for help on using the changeset viewer.