Skip to content

Commit

Permalink
Remove 'Total size' from alloptions cli
Browse files Browse the repository at this point in the history
  • Loading branch information
trepmal committed Dec 25, 2024
1 parent e95d240 commit 6a64b20
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wp-cli/alloptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public function find( $args, $assoc_args ) {

WP_CLI\Utils\format_items( $assoc_args['format'], $options, array( 'name', 'size' ) );

WP_CLI::line( sprintf( 'Total size of all option values for this blog: %s', size_format( $total_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( "\tuse `wp option get <option_name>` to view a big option" );
WP_CLI::line( "\tuse `wp option delete <option_name>` to delete a big option" );
Expand Down

0 comments on commit 6a64b20

Please sign in to comment.