Skip to content

Commit 957e06a

Browse files
committed
Use "after_wp_config_load" for all SQLite commands
This ensures the DB_NAME constant from "wp-config.php" is used, and aligns these commands with similar "wp db" commands. With WordPress/sqlite-database-integration#213, the correctness of the database name will also be verified.
1 parent 91a50b4 commit 957e06a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/SQLite_Command.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SQLite_Command extends WP_CLI_Command {
2424
* $ wp sqlite import wordpress_dbase.sql
2525
* Success: Imported from 'import wordpress_dbase.sql'.
2626
*
27-
* @when before_wp_load
27+
* @when after_wp_config_load
2828
*/
2929
public function import( $args, $assoc_args ) {
3030
$enable_ast_driver = isset( $assoc_args['enable-ast-driver'] );
@@ -87,7 +87,7 @@ public function import( $args, $assoc_args ) {
8787
* $ wp sqlite export --exclude_tables=wp_posts,wp_users
8888
* Success: Exported to 'wordpress_dbase.sql'.
8989
*
90-
* @when before_wp_load
90+
* @when after_wp_config_load
9191
*/
9292
public function export( $args, $assoc_args ) {
9393
$is_porcelain = isset( $assoc_args['porcelain'] );
@@ -156,7 +156,7 @@ public function export( $args, $assoc_args ) {
156156
* wp_usermeta
157157
* wp_users
158158
*
159-
* @when before_wp_load
159+
* @when after_wp_config_load
160160
*/
161161
public function tables( $args, $assoc_args ) {
162162
$enable_ast_driver = isset( $assoc_args['enable-ast-driver'] );

0 commit comments

Comments
 (0)