Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/26/2020 06:11:39 PM (4 years ago)
Author:
espellcaste
Message:

Update the BP CLI package to the 2.0 version (https://github.com/buddypress/wp-cli-buddypress/releases/tag/2.0).

Also, add a conditional to avoid conflict with the BuddyPress plugin version. This makes sure
there is no conflict when the package is installed via the wp package install buddypress command.

Props imath

Fixes #8308

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/class-buddypress.php

    r12730 r12737  
    514514        }
    515515
    516         // Load wp-cli module if PHP 5.4+.
    517         if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) && version_compare( phpversion(), '5.4.0', '>=' ) ) {
     516        // Load wp-cli module if PHP 5.6+.
     517        if (
     518            defined( 'WP_CLI' )
     519            && ! class_exists( 'Buddypress\CLI\Command\BuddypressCommand' )
     520            && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' )
     521            && version_compare( phpversion(), '5.6.0', '>=' ) ) {
    518522            require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
    519523        }
Note: See TracChangeset for help on using the changeset viewer.