Make WordPress Core


Ignore:
Timestamp:
01/30/2024 02:51:40 PM (11 months ago)
Author:
jorbin
Message:

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

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

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

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

    r48586 r57400  
    578578        }
    579579
    580         if ( is_array( $value ) ) {
    581             $value = serialize( $value );
    582         }
    583 
    584580        if ( ! empty( $insert ) ) {
    585581            $insert .= ', ';
    586582        }
     583
     584        $value = maybe_serialize( sanitize_option( $option, $value ) );
    587585
    588586        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
Note: See TracChangeset for help on using the changeset viewer.