Skip to content

Commit

Permalink
fix CLI calling
Browse files Browse the repository at this point in the history
  • Loading branch information
leonstafford committed Nov 4, 2020
1 parent b713605 commit b362bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp2static.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function wp2static_deregister_scripts() {
remove_action( 'wp_print_styles', 'print_emoji_styles' );

if ( defined( 'WP_CLI' ) ) {
WP_CLI::add_command( 'wp2static', CLI::class );
WP_CLI::add_command( 'wp2static options', [ CLI::class, 'options' ] );
WP_CLI::add_command( 'wp2static', 'WP2Static\CLI' );
WP_CLI::add_command( 'wp2static options', [ 'WP2Static\CLI', 'options' ] );
}

0 comments on commit b362bbd

Please sign in to comment.