Changeset 1496900
- Timestamp:
- 09/16/2016 12:30:16 PM (10 years ago)
- Location:
- idea-board/trunk/src/ideapeople/board
- Files:
-
- 3 edited
-
Activator.php (modified) (3 diffs)
-
PluginConfig.php (modified) (1 diff)
-
setting/Setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
idea-board/trunk/src/ideapeople/board/Activator.php
r1496843 r1496900 8 8 namespace ideapeople\board; 9 9 10 11 10 use ideapeople\board\action\FileAction; 12 11 … … 15 14 16 15 public function __construct() { 16 global $wp_version; 17 17 18 $this->post_type = new PostTypes(); 18 19 $this->roles = new Roles(); … … 37 38 38 39 public function version_check() { 40 global $wp_version; 41 39 42 if ( phpversion() < PluginConfig::$support_php_version ) { 40 43 deactivate_plugins( plugin_basename( PluginConfig::$__FILE__ ) ); 41 44 42 45 wp_die( sprintf( 'This plugin requires PHP Version %s. Sorry about that.', PluginConfig::$support_php_version ) ); 46 47 return false; 48 } 49 50 if ( $wp_version * 1 < PluginConfig::$support_wp_version ) { 51 deactivate_plugins( plugin_basename( PluginConfig::$__FILE__ ) ); 52 53 wp_die( sprintf( 'This plugin requires WP Version %s. Sorry about that.', PluginConfig::$support_wp_version ) ); 43 54 44 55 return false; -
idea-board/trunk/src/ideapeople/board/PluginConfig.php
r1496664 r1496900 11 11 class PluginConfig { 12 12 static $support_php_version = 5.3; 13 static $support_wp_version = 4.4; 13 14 14 15 static $plugin_name = 'IDEA_BOARD'; -
idea-board/trunk/src/ideapeople/board/setting/Setting.php
r1496785 r1496900 84 84 85 85 if ( ! $board_term ) { 86 $board_term = get_term_by( 'term_taxonomy_id', $value );86 $board_term = get_term_by( 'term_taxonomy_id', $value, PluginConfig::$board_tax ); 87 87 88 88 if ( ! $board_term ) {
Note: See TracChangeset
for help on using the changeset viewer.