Skip to:
Content

BuddyPress.org

Ticket #7195: 7195.01.patch

File 7195.01.patch, 664 bytes (added by DJPaul, 10 years ago)
  • src/bp-loader.php

    diff --git a/src/bp-loader.php b/src/bp-loader.php
    index 31acc4d..d6cffe4 100644
    a b  
    2424// Exit if accessed directly
    2525defined( 'ABSPATH' ) || exit;
    2626
    27 /** Constants *****************************************************************/
     27if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
     28        if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
     29                $callback = function() {
     30                        echo '<div class="error"><p>Your PHP is old, yo.</p></div>';
     31                };
     32
     33                add_action( 'admin_notices', $callback );
     34                add_action( 'network_admin_notices', $callback );
     35        }
     36
     37        return;
     38}
     39
    2840
    2941if ( !class_exists( 'BuddyPress' ) ) :
    3042/**