Skip to:
Content

BuddyPress.org

Ticket #8308: 8308.diff

File 8308.diff, 1.2 KB (added by espellcaste, 5 years ago)
  • Gruntfile.js

    diff --git a/Gruntfile.js b/Gruntfile.js
    index 62de51708..9698e13a6 100644
    a b module.exports = function( grunt ) { 
    313313                                stdout: false
    314314                        },
    315315                        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',
    317317                                cwd: BUILD_DIR,
    318318                                stdout: false
    319319                        },
  • src/class-buddypress.php

    diff --git a/src/class-buddypress.php b/src/class-buddypress.php
    index d4610aad4..d225917f2 100644
    a b class BuddyPress { 
    512512                        require( $this->plugin_dir . 'bp-core/deprecated/6.0.php' );
    513513                }
    514514
    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', '>=' ) ) {
    517521                        require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
    518522                }
    519523        }