-
Notifications
You must be signed in to change notification settings - Fork 66
Add decimal numbers to wp db size
#163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5b2146f
to
ea1f614
Compare
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>
wp db size
wp db size
@wojsmol Can you add a test that uses the |
@schlessera I added the test but it's failing for same reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work right now because the filter_var()
a few lines below is stripping the period again.
I'd suggest doing the following (I can't provide it a s a suggestion here, so you;ll have to edit:
- WP_CLI::line( filter_var( $rows[0]['Size'], FILTER_SANITIZE_NUMBER_INT ) );
+ WP_CLI::line( str_replace( " {$size_format_display}", '', $rows[0]['Size'] ) );
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
@schlessera Changes added. |
No description provided.