User Role Editor - Version 4.17.1

Version Description

  • 01.10.2014
  • Bug fix for the PHP Fatal error: Call to undefined function is_plugin_active_for_network(). It may take place under multisite only, in case no one of the other active plugins load file with this function already before User Role Editor v. 4.17 tries to call it.
Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 4.17.1
Comparing to
See all releases

Code changes from version 4.17 to 4.17.1

includes/class-ure-lib.php CHANGED
@@ -68,7 +68,10 @@ class Ure_Lib extends Garvs_WP_Lib {
68
 
69
  global $wpdb;
70
 
71
- if ($this->multisite) {
 
 
 
72
  $this->active_for_network = is_plugin_active_for_network(URE_PLUGIN_BASE_NAME);
73
  }
74
  $current_blog = $wpdb->blogid;
68
 
69
  global $wpdb;
70
 
71
+ if ($this->multisite) {
72
+ if ( ! function_exists( 'is_plugin_active_for_network' ) ) { // Be sure the function is defined before trying to use it
73
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
74
+ }
75
  $this->active_for_network = is_plugin_active_for_network(URE_PLUGIN_BASE_NAME);
76
  }
77
  $current_blog = $wpdb->blogid;
readme.txt CHANGED
@@ -84,6 +84,11 @@ Some translations may be outdated. If you have better translation for some phras
84
 
85
 
86
  == Changelog ==
 
 
 
 
 
87
  = 4.17 =
88
  * 01.10.2014
89
  * Multisite (update for cases when URE was not network activated): It is possible to use own settings for single site activated instances of User Role Editor.
84
 
85
 
86
  == Changelog ==
87
+ = 4.17.1 =
88
+ * 01.10.2014
89
+ * Bug fix for the PHP Fatal error: Call to undefined function is_plugin_active_for_network(). It may take place under multisite only,
90
+ in case no one of the other active plugins load file with this function already before User Role Editor v. 4.17 tries to call it.
91
+
92
  = 4.17 =
93
  * 01.10.2014
94
  * Multisite (update for cases when URE was not network activated): It is possible to use own settings for single site activated instances of User Role Editor.
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
- Version: 4.17
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.17');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
+ Version: 4.17.1
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
+ define('URE_VERSION', '4.17.1');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));