| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | Plugin Name: Edit Flow |
| 4 | 4 | Plugin URI: http://editflow.org/ |
| 5 | 5 | Description: Remixing the WordPress admin for better editorial workflow options. |
| 6 | 6 | Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others |
| 7 | -Version: 0.9 | |
| 7 | +Version: 0.9.2 | |
| 8 | 8 | Author URI: http://editflow.org/ |
| 9 | 9 | |
| 10 | 10 | Copyright 2009-2019 Mohammad Jangda, Daniel Bachhuber, Automattic, et al. |
| 11 | 11 | |
| @@ -34,20 +34,20 @@ | ||
| 34 | 34 | */ |
| 35 | 35 | function _ef_print_php_version_admin_notice() { |
| 36 | 36 | ?> |
| 37 | 37 | <div class="notice notice-error"> |
| 38 | - <p><?php esc_html_e( 'Edit Flow requires PHP 5.4+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p> | |
| 38 | + <p><?php esc_html_e( 'Edit Flow requires PHP 5.6+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p> | |
| 39 | 39 | </div> |
| 40 | 40 | <?php |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | -if ( version_compare( phpversion(), '5.4', '<' ) ) { | |
| 43 | +if ( version_compare( phpversion(), '5.6', '<' ) ) { | |
| 44 | 44 | add_action( 'admin_notices', '_ef_print_php_version_admin_notice' ); |
| 45 | 45 | return; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // Define contants |
| 49 | -define( 'EDIT_FLOW_VERSION' , '0.9' ); | |
| 49 | +define( 'EDIT_FLOW_VERSION' , '0.9.2' ); | |
| 50 | 50 | define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) ); |
| 51 | 51 | define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) ); |
| 52 | 52 | define( 'EDIT_FLOW_URL' , plugins_url( '/', __FILE__ ) ); |
| 53 | 53 | define( 'EDIT_FLOW_SETTINGS_PAGE' , add_query_arg( 'page', 'ef-settings', get_admin_url( null, 'admin.php' ) ) ); |
| @@ -94,11 +94,10 @@ | ||
| 94 | 94 | /** Do nothing **/ |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | private function setup_globals() { |
| 98 | - | |
| 99 | 98 | $this->modules = new stdClass(); |
| 100 | - | |
| 99 | + $this->modules_count = 0; | |
| 101 | 100 | } |
| 102 | 101 | |
| 103 | 102 | /** |
| 104 | 103 | * Include the common resources to Edit Flow and dynamically load the modules |
| @@ -294,8 +293,10 @@ | ||
| 294 | 293 | if ( !empty( $args['settings_help_tab'] ) ) |
| 295 | 294 | add_action( 'load-edit-flow_page_' . $args['settings_slug'], array( &$this->$name, 'action_settings_help_menu' ) ); |
| 296 | 295 | |
| 297 | 296 | $this->modules->$name = (object) $args; |
| 297 | + | |
| 298 | + $this->modules_count++; | |
| 298 | 299 | |
| 299 | 300 | /** |
| 300 | 301 | * Fires after edit_flow has registered a module. |
| 301 | 302 | * |