Version Description
- Fixed : User editing was improperly blocked in some cases
Download this release
Release Info
Developer | kevinB |
Plugin | Capability Manager Enhanced |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- capsman-enhanced.php +3 -3
- includes/manager.php +3 -2
- readme.txt +4 -1
capsman-enhanced.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Capability Manager Enhanced
|
4 |
Plugin URI: http://presspermit.com/capability-manager
|
5 |
Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
|
6 |
-
Version: 1.5.
|
7 |
Author: Jordi Canals, Kevin Behrens
|
8 |
Author URI: http://agapetry.net
|
9 |
Text Domain: capsman-enhanced
|
@@ -34,8 +34,8 @@ Domain Path: /lang/
|
|
34 |
*/
|
35 |
|
36 |
if ( ! defined( 'CAPSMAN_VERSION' ) ) {
|
37 |
-
define( 'CAPSMAN_VERSION', '1.5.
|
38 |
-
define( 'CAPSMAN_ENH_VERSION', '1.5.
|
39 |
}
|
40 |
|
41 |
if ( cme_is_plugin_active( 'capsman.php' ) ) {
|
3 |
Plugin Name: Capability Manager Enhanced
|
4 |
Plugin URI: http://presspermit.com/capability-manager
|
5 |
Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
|
6 |
+
Version: 1.5.5
|
7 |
Author: Jordi Canals, Kevin Behrens
|
8 |
Author URI: http://agapetry.net
|
9 |
Text Domain: capsman-enhanced
|
34 |
*/
|
35 |
|
36 |
if ( ! defined( 'CAPSMAN_VERSION' ) ) {
|
37 |
+
define( 'CAPSMAN_VERSION', '1.5.5' );
|
38 |
+
define( 'CAPSMAN_ENH_VERSION', '1.5.5' );
|
39 |
}
|
40 |
|
41 |
if ( cme_is_plugin_active( 'capsman.php' ) ) {
|
includes/manager.php
CHANGED
@@ -242,8 +242,9 @@ class CapabilityManager extends akPluginAbstract
|
|
242 |
|
243 |
$user = new WP_User( (int) $args[0] );
|
244 |
|
|
|
|
|
245 |
if ( defined( 'CME_LEGACY_USER_EDIT_FILTER' ) && CME_LEGACY_USER_EDIT_FILTER ) {
|
246 |
-
$this->generateNames();
|
247 |
$valid = array_keys($this->roles);
|
248 |
|
249 |
foreach ( $user->roles as $role ) {
|
@@ -254,7 +255,7 @@ class CapabilityManager extends akPluginAbstract
|
|
254 |
}
|
255 |
} else {
|
256 |
global $wp_roles;
|
257 |
-
|
258 |
foreach ( $user->roles as $role ) {
|
259 |
$r = get_role( $role );
|
260 |
$level = ak_caps2level($r->capabilities);
|
242 |
|
243 |
$user = new WP_User( (int) $args[0] );
|
244 |
|
245 |
+
$this->generateNames();
|
246 |
+
|
247 |
if ( defined( 'CME_LEGACY_USER_EDIT_FILTER' ) && CME_LEGACY_USER_EDIT_FILTER ) {
|
|
|
248 |
$valid = array_keys($this->roles);
|
249 |
|
250 |
foreach ( $user->roles as $role ) {
|
255 |
}
|
256 |
} else {
|
257 |
global $wp_roles;
|
258 |
+
|
259 |
foreach ( $user->roles as $role ) {
|
260 |
$r = get_role( $role );
|
261 |
$level = ak_caps2level($r->capabilities);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JWZVF
|
|
4 |
Tags: roles, capabilities, manager, editor, rights, role, capability, types, taxonomies, network, multisite, default
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.5.
|
8 |
|
9 |
A simple way to manage WordPress roles and capabilities.
|
10 |
|
@@ -105,6 +105,9 @@ You should have received a copy of the GNU General Public License along with thi
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 1.5.4 =
|
109 |
* Fixed : Non-administrators' user editing capabilities were blocked if Press Permit Core was also active
|
110 |
* Fixed : Non-administrators could not edit other users with their role (define constant CME_LEGACY_USER_EDIT_FILTER to retain previous behavior)
|
4 |
Tags: roles, capabilities, manager, editor, rights, role, capability, types, taxonomies, network, multisite, default
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.5.5
|
8 |
|
9 |
A simple way to manage WordPress roles and capabilities.
|
10 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.5.5 =
|
109 |
+
* Fixed : User editing was improperly blocked in some cases
|
110 |
+
|
111 |
= 1.5.4 =
|
112 |
* Fixed : Non-administrators' user editing capabilities were blocked if Press Permit Core was also active
|
113 |
* Fixed : Non-administrators could not edit other users with their role (define constant CME_LEGACY_USER_EDIT_FILTER to retain previous behavior)
|