diff --git a/wp-cli/alloptions.php b/wp-cli/alloptions.php index 5e6118d6be..6b60c264b5 100644 --- a/wp-cli/alloptions.php +++ b/wp-cli/alloptions.php @@ -65,6 +65,7 @@ public function find( $args, $assoc_args ) { WP_CLI\Utils\format_items( $assoc_args['format'], $options, array( 'name', 'size' ) ); WP_CLI::line( sprintf( 'Size of serialized alloptions for this blog: %s', size_format( strlen( serialize( $alloptions ) ) ) ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize + WP_CLI::line( sprintf( 'Size of serialized alloptions for this blog (gzdeflate): %s', size_format( strlen( gzdeflate( serialize( $alloptions ) ) ), 2 ) ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize WP_CLI::line( "\tuse `wp option get ` to view a big option" ); WP_CLI::line( "\tuse `wp option delete ` to delete a big option" ); WP_CLI::line( "\tuse `wp option set-autoload no` to disable autoload for option" );