Skip to content

Commit

Permalink
Ensure that components are installed after activating
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jan 27, 2014
1 parent ced8f36 commit 0623964
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public function activate( $args, $assoc_args ) {
// Save in the db
bp_update_option( 'bp-active-components', $acs );

// Run the setup, in case tables have to be created
require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-schema.php' );
bp_core_install( $acs );
bp_core_add_page_mappings( $acs );

WP_CLI::success( sprintf( 'The %s component has been activated.', ucfirst( $c ) ) );
}

Expand Down

0 comments on commit 0623964

Please sign in to comment.