Make WordPress Core


Ignore:
Timestamp:
01/30/2024 02:37:21 PM (3 years ago)
Author:
jorbin
Message:

Grouped Backports to the 6.1 branch

  • Install: When populating options, maybe_serialize instead of always serialize.
  • Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 6.1 branch.

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

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

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

    r54256 r57394  
    595595                }
    596596
    597                 if ( is_array( $value ) ) {
    598                         $value = serialize( $value );
    599                 }
    600 
    601597                if ( ! empty( $insert ) ) {
    602598                        $insert .= ', ';
    603599                }
     600
     601                $value = maybe_serialize( sanitize_option( $option, $value ) );
    604602
    605603                $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
Note: See TracChangeset for help on using the changeset viewer.