Skip to content

Commit 7caec75

Browse files
committed
Make wp db clean get all the tables with prefix
1 parent 0cce781 commit 7caec75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DB_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@ public function clean( $_, $assoc_args ) {
160160

161161
$tables = Utils\wp_get_table_names(
162162
array(),
163-
array( 'all-tables-with-prefix' )
163+
array( 'all-tables-with-prefix' => true )
164164
);
165165

166+
166167
foreach ( $tables as $table ) {
167168
self::run_query(
168169
sprintf(

0 commit comments

Comments
 (0)