Skip to content

Commit

Permalink
Merge pull request #32 from kprajapatii/master
Browse files Browse the repository at this point in the history
Fix issue for plugin installation via WP-CLI - FIXED
Stiofan authored Feb 7, 2017
2 parents 6f092ae + 64434b6 commit 5b5ec7b
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
@@ -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' );
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

0 comments on commit 5b5ec7b

Please sign in to comment.