Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ function init() {
return;
}

if ( defined( 'WP_CLI' ) && WP_CLI ) {
\WP_CLI::add_command( 's3-uploads', 'S3_Uploads\\WP_CLI_Command' );
}

if ( ! enabled() ) {
return;
}
Expand All @@ -29,10 +33,6 @@ function init() {
wp_die( 'S3_UPLOADS_REGION constant is required. Please define it in your wp-config.php' );
}

if ( defined( 'WP_CLI' ) && WP_CLI ) {
\WP_CLI::add_command( 's3-uploads', 'S3_Uploads\\WP_CLI_Command' );
}

$instance = Plugin::get_instance();
$instance->setup();

Expand Down