Plugin Directory

Changeset 427074


Ignore:
Timestamp:
08/22/2011 12:49:52 PM (15 years ago)
Author:
jaredh123
Message:

graceful fail for people not running PHP5 and WordPress 3.2+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prophoto-beta-tester/trunk/pp-beta-tester.php

    r426027 r427074  
    55    Description: Facilitates beta-testing for future releases of the ProPhoto theme
    66    Author: Jared Henderson
    7     Version: 0.14
     7    Version: 0.15
    88    Author URI: http://www.prophotoblogs.com/beta-testing-plugin/
    99 */
     
    287287   
    288288    function ProPhotoBetaTester() {
    289         $this->init();
     289        if ( function_exists( 'spl_autoload_register' ) && floatval( $GLOBALS['wp_version'] ) >= 3.2 ) {
     290            $this->init();
     291        } else {
     292            add_action( 'admin_notices', create_function( '', 'echo "<div class=\'error\' style=\'padding:4px 9px;\'>
     293            <em>ProPhoto Beta Testing Plugin</em> and 
     294            <em>ProPhoto4</em> <b>require WordPress version 3.2 or higher</b>.</div>";' ) );
     295        }
    290296    }
    291297   
Note: See TracChangeset for help on using the changeset viewer.