Make WordPress Core


Ignore:
Timestamp:
01/30/2024 03:12:40 PM (16 months ago)
Author:
jorbin
Message:

Grouped Backports to the 4.3 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.3 branch.

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

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

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

    r33621 r57412  
    530530            $autoload = 'yes';
    531531
    532         if ( is_array($value) )
    533             $value = serialize($value);
    534532        if ( !empty($insert) )
    535533            $insert .= ', ';
     534
     535        $value = maybe_serialize( sanitize_option( $option, $value ) );
     536
    536537        $insert .= $wpdb->prepare( "(%s, %s, %s)", $option, $value, $autoload );
    537538    }
Note: See TracChangeset for help on using the changeset viewer.