Skip to:
Content

BuddyPress.org

Changeset 12266


Ignore:
Timestamp:
10/31/2018 04:11:46 AM (2 years ago)
Author:
r-a-y
Message:

Only load WP-CLI module if PHP version is 5.4+.

WP-CLI 2.0.0 requires PHP 5.4+:
https://make.wordpress.org/cli/2017/12/06/timing-for-v1-5-0-and-v2-0-0/

Fixes #7933.

File:
1 edited

Legend:

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

    r12264 r12266  
    510510        }
    511511
    512         if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) ) {
     512        // Load wp-cli module if PHP 5.4+
     513        if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) && version_compare( phpversion(), '5.4.0', '>=' ) ) {
    513514            require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
    514515        }
Note: See TracChangeset for help on using the changeset viewer.