File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class CLI extends WP_CLI_Command {
2121 */
2222 public static function products ( $ args , $ assoc_args ) {
2323 list ( $ amount ) = $ args ;
24+ $ amount = absint ( $ amount );
2425
2526 $ time_start = microtime ( true );
2627
@@ -53,6 +54,7 @@ public static function products( $args, $assoc_args ) {
5354 */
5455 public static function orders ( $ args , $ assoc_args ) {
5556 list ( $ amount ) = $ args ;
57+ $ amount = absint ( $ amount );
5658
5759 $ time_start = microtime ( true );
5860
@@ -89,6 +91,7 @@ public static function orders( $args, $assoc_args ) {
8991 */
9092 public static function customers ( $ args , $ assoc_args ) {
9193 list ( $ amount ) = $ args ;
94+ $ amount = absint ( $ amount );
9295
9396 $ time_start = microtime ( true );
9497
@@ -115,6 +118,7 @@ public static function customers( $args, $assoc_args ) {
115118 */
116119 public static function coupons ( $ args , $ assoc_args ) {
117120 list ( $ amount ) = $ args ;
121+ $ amount = absint ( $ amount );
118122
119123 $ time_start = microtime ( true );
120124
You can’t perform that action at this time.
0 commit comments