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 35b9ae1 commit 0dcef15Copy full SHA for 0dcef15
plugins/performance-lab/includes/site-health/audit-autoloaded-options/helper.php
@@ -147,10 +147,11 @@ function perflab_aao_query_autoloaded_options(): array {
147
$large_options = array();
148
149
foreach ( $all_options as $option_name => $option_value ) {
150
- if ( strlen( $option_value ) > $option_threshold ) {
+ $serialized_value = maybe_serialize( $option_value );
151
+ if ( strlen( $serialized_value ) > $option_threshold ) {
152
$large_options[] = (object) array(
153
'option_name' => $option_name,
- 'option_value_length' => strlen( $option_value ),
154
+ 'option_value_length' => strlen( $serialized_value ),
155
);
156
}
157
0 commit comments