Skip to:
Content

BuddyPress.org

Ticket #7933: 7933.01.patch

File 7933.01.patch, 582 bytes (added by r-a-y, 7 years ago)
  • src/class-buddypress.php

     
    508508                        require( $this->plugin_dir . 'bp-core/deprecated/3.0.php' );
    509509                }
    510510
    511                 if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) ) {
     511                // Load wp-cli module if PHP 5.4+
     512                if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) && version_compare( phpversion(), '5.4.0', '>=' ) ) {
    512513                        require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
    513514                }
    514515        }