Changeset 1916669
- Timestamp:
- 07/30/2018 12:36:40 AM (8 years ago)
- Location:
- featured-galleries/trunk
- Files:
-
- 2 edited
-
featured-galleries.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
featured-galleries/trunk/featured-galleries.php
r1916635 r1916669 4 4 * Plugin URI: http://wordpress.org/plugins/featured-galleries/ 5 5 * Description: WordPress ships with a Featured Image functionality. This adds a very similar functionality, but allows for full featured galleries with multiple images. 6 * Version: 2.0. 06 * Version: 2.0.1 7 7 * Author: Andy Mercer 8 8 * Author URI: http://www.andymercer.net … … 21 21 define( 'FG_PLUGIN_FILE', __FILE__ ); 22 22 23 if ( version_compare( PHP_VERSION, '5.4', '<' ) ) { 23 24 25 add_action('admin_notices', 'my_plugin_notice'); 24 26 25 /***********************************************************************/ 26 /********************** INCLUDE REQUIRED FILES ***********************/ 27 /***********************************************************************/ 27 function my_plugin_notice(){ 28 28 29 require_once( plugin_dir_path(FG_PLUGIN_FILE) . 'includes/controller.php' ); 29 echo ' 30 <div class="error below-h2"> 31 <p> 32 ' . sprintf( 'Featured Galleries requires PHP version 5.4 or greater. You are currently running version: %s. Please deactivate Featured Galleries or upgrade your PHP.', PHP_VERSION ) . ' 33 </p> 34 </div> 35 '; 36 } 30 37 31 require_once( plugin_dir_path(FG_PLUGIN_FILE) . 'includes/public-functions.php' ); 38 } else { 32 39 40 /***********************************************************************/ 41 /********************** INCLUDE REQUIRED FILES ***********************/ 42 /***********************************************************************/ 33 43 44 require_once( plugin_dir_path(FG_PLUGIN_FILE) . 'includes/controller.php' ); 34 45 35 /***********************************************************************/ 36 /***************************** INITIATE ******************************/ 37 /***********************************************************************/ 46 require_once( plugin_dir_path(FG_PLUGIN_FILE) . 'includes/public-functions.php' ); 38 47 39 new FG_Controller(); 48 /***********************************************************************/ 49 /***************************** INITIATE ******************************/ 50 /***********************************************************************/ 51 52 new FG_Controller(); 53 54 } -
featured-galleries/trunk/readme.txt
r1916640 r1916669 5 5 Requires at least: 3.8.0 6 6 Tested up to: 4.9.7 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later … … 169 169 == Changelog == 170 170 171 = 2.0.1 = 172 173 * Bugfix: Don't run plugin logic on old versions of PHP that are incompatible. 174 171 175 = 2.0.0 = 172 176
Note: See TracChangeset
for help on using the changeset viewer.