Skip to content

Commit

Permalink
Fix issue for plugin installation via WP-CLI - FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Feb 6, 2017
1 parent 2444e49 commit 64434b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bp-compliments.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function bp_compliments_activate() {
add_option( 'bp_compliments_activation_redirect', 1 );
}

if ( is_admin() ) {
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
register_activation_hook( __FILE__, 'bp_compliments_activate' );
register_deactivation_hook( __FILE__, 'bp_compliments_deactivate' );
add_action( 'admin_init', 'bp_compliments_activation_redirect' );
Expand Down
3 changes: 3 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.0.8
Fix issue for plugin installation via WP-CLI - FIXED

v1.0.7
Send compliment button can be displayed in /members page - ADDED
PHP undefined notices in wordpress admin - FIXED
Expand Down

0 comments on commit 64434b6

Please sign in to comment.