Skip to:
Content

BuddyPress.org

Changeset 12737


Ignore:
Timestamp:
09/26/2020 06:11:39 PM (6 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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r12736 r12737  
    319319                        },
    320320                        cli: {
    321                                 command: 'svn export --force https://github.com/buddypress/wp-cli-buddypress.git/tags/1.8 cli',
     321                                command: 'svn export --force https://github.com/buddypress/wp-cli-buddypress.git/tags/2.0 cli',
    322322                                cwd: BUILD_DIR,
    323323                                stdout: false
  • 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.