Make WordPress Core


Ignore:
Timestamp:
01/30/2024 02:31:53 PM (2 years ago)
Author:
jorbin
Message:

Grouped Backports to the 6.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 6.3 branch.

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

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

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

    r56176 r57392  
    597597        }
    598598
    599         if ( is_array( $value ) ) {
    600             $value = serialize( $value );
    601         }
    602 
    603599        if ( ! empty( $insert ) ) {
    604600            $insert .= ', ';
    605601        }
     602
     603        $value = maybe_serialize( sanitize_option( $option, $value ) );
    606604
    607605        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
Note: See TracChangeset for help on using the changeset viewer.