Created
          March 1, 2015 22:21 
        
      - 
      
- 
        Save yanknudtskov/9fe6a36bc25870816a3c to your computer and use it in GitHub Desktop. 
    Check for PHP 5.3+ in WordPress plugins
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // Prevent direct file access | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| header( 'Status: 403 Forbidden' ); | |
| header( 'HTTP/1.1 403 Forbidden' ); | |
| exit; | |
| } | |
| // Check if PHP is at the minimum required version | |
| if( version_compare( PHP_VERSION, '5.3', '>=' ) ) { | |
| define( 'MAILCHIMP_TOP_BAR_FILE', __FILE__ ); | |
| require_once dirname( __FILE__ ) . '/plugin.php'; | |
| } else { | |
| require_once dirname( __FILE__ ) . '/php-backwards-compatibility.php'; | |
| } | |
| ?> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment