We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcef15 commit af0362dCopy full SHA for af0362d
plugins/performance-lab/includes/site-health/audit-autoloaded-options/helper.php
@@ -147,7 +147,9 @@ function perflab_aao_query_autoloaded_options(): array {
147
$large_options = array();
148
149
foreach ( $all_options as $option_name => $option_value ) {
150
- $serialized_value = maybe_serialize( $option_value );
+ if ( is_array( $option_value ) || is_object( $option_value ) ) {
151
+ $option_value = serialize( $option_value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize
152
+ }
153
if ( strlen( $serialized_value ) > $option_threshold ) {
154
$large_options[] = (object) array(
155
'option_name' => $option_name,
0 commit comments