diff --git a/Gruntfile.js b/Gruntfile.js
index 62de51708..9698e13a6 100644
a
|
b
|
module.exports = function( grunt ) { |
313 | 313 | stdout: false |
314 | 314 | }, |
315 | 315 | cli: { |
316 | | command: 'svn export --force https://github.com/buddypress/wp-cli-buddypress.git/tags/1.8 cli', |
| 316 | command: 'svn export --force https://github.com/buddypress/wp-cli-buddypress.git/trunk cli', |
317 | 317 | cwd: BUILD_DIR, |
318 | 318 | stdout: false |
319 | 319 | }, |
diff --git a/src/class-buddypress.php b/src/class-buddypress.php
index d4610aad4..d225917f2 100644
a
|
b
|
class BuddyPress { |
512 | 512 | require( $this->plugin_dir . 'bp-core/deprecated/6.0.php' ); |
513 | 513 | } |
514 | 514 | |
515 | | // Load wp-cli module if PHP 5.4+. |
516 | | if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) && version_compare( phpversion(), '5.4.0', '>=' ) ) { |
| 515 | // Load wp-cli module if PHP 5.6+. |
| 516 | if ( |
| 517 | defined( 'WP_CLI' ) |
| 518 | && ! class_exists( 'Buddypress\CLI\Command\BuddypressCommand') |
| 519 | && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) |
| 520 | && version_compare( phpversion(), '5.6.0', '>=' ) ) { |
517 | 521 | require( $this->plugin_dir . 'cli/wp-cli-bp.php' ); |
518 | 522 | } |
519 | 523 | } |