Skip to content

Commit

Permalink
Fix wp-cli bug
Browse files Browse the repository at this point in the history
call_user_func(): Argument qtranslate#1 ($callback) must be a valid callback
  • Loading branch information
IJMacD committed Nov 8, 2023
1 parent 181d13a commit 48aaba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
require_once QTRANSLATE_DIR . '/src/init.php';
add_action( 'plugins_loaded', 'qtranxf_init_language', 2 ); // User is not authenticated yet, high priority needed.

if ( is_admin() ) {
if ( is_admin() || defined( 'WP_CLI' ) ) {
require_once QTRANSLATE_DIR . '/src/admin/activation_hook.php';
qtranxf_register_activation_hooks();
}

0 comments on commit 48aaba0

Please sign in to comment.