Capability Manager Enhanced - Version 1.5.10

Version Description

  • Fixed : Back button caused mismatching role dropdown selection
    • Compat : PHP 7.2 - warning for deprecated function if a second copy of CME is activated
Download this release

Release Info

Developer kevinB
Plugin Icon 128x128 Capability Manager Enhanced
Version 1.5.10
Comparing to
See all releases

Code changes from version 1.5.9 to 1.5.10

Files changed (3) hide show
  1. capsman-enhanced.php +9 -6
  2. includes/admin.php +8 -0
  3. readme.txt +6 -2
capsman-enhanced.php CHANGED
@@ -8,14 +8,14 @@
8
  * @copyright Copyright (C) 2009, 2010 Jordi Canals; modifications Copyright (C) 2012-2018 Kevin Behrens
9
  * @license GNU General Public License version 3
10
  * @link http://agapetry.net
11
- * @version 1.5.9
12
  */
13
 
14
  /*
15
  Plugin Name: Capability Manager Enhanced
16
  Plugin URI: http://presspermit.com/capability-manager
17
  Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
18
- Version: 1.5.9
19
  Author: Jordi Canals, Kevin Behrens
20
  Author URI: http://agapetry.net
21
  Text Domain: capsman-enhanced
@@ -24,13 +24,16 @@ License: GPLv3
24
  */
25
 
26
  if ( ! defined( 'CAPSMAN_VERSION' ) ) {
27
- define( 'CAPSMAN_VERSION', '1.5.9' );
28
- define( 'CAPSMAN_ENH_VERSION', '1.5.9' );
29
  }
30
 
31
  if ( cme_is_plugin_active( 'capsman.php' ) ) {
32
- $message = __( '<strong>Error:</strong> Capability Manager Extended cannot function because another copy of Capability Manager is active.', 'capsman-enhanced' );
33
- add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade" style="color: black">' . $message . '</div>\';'));
 
 
 
34
  return;
35
  } else {
36
  define ( 'CME_FILE', __FILE__ );
8
  * @copyright Copyright (C) 2009, 2010 Jordi Canals; modifications Copyright (C) 2012-2018 Kevin Behrens
9
  * @license GNU General Public License version 3
10
  * @link http://agapetry.net
11
+ * @version 1.5.10
12
  */
13
 
14
  /*
15
  Plugin Name: Capability Manager Enhanced
16
  Plugin URI: http://presspermit.com/capability-manager
17
  Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
18
+ Version: 1.5.10
19
  Author: Jordi Canals, Kevin Behrens
20
  Author URI: http://agapetry.net
21
  Text Domain: capsman-enhanced
24
  */
25
 
26
  if ( ! defined( 'CAPSMAN_VERSION' ) ) {
27
+ define( 'CAPSMAN_VERSION', '1.5.10' );
28
+ define( 'CAPSMAN_ENH_VERSION', '1.5.10' );
29
  }
30
 
31
  if ( cme_is_plugin_active( 'capsman.php' ) ) {
32
+ function _cme_conflict_notice() {
33
+ $message = __( '<strong>Error:</strong> Capability Manager Extended cannot function because another copy of Capability Manager is active.', 'capsman-enhanced' );
34
+ echo '<div id="message" class="error fade" style="color: black">' . $message . '</div>';
35
+ }
36
+ add_action('admin_notices', _cme_conflict_notice() );
37
  return;
38
  } else {
39
  define ( 'CME_FILE', __FILE__ );
includes/admin.php CHANGED
@@ -655,6 +655,14 @@ if( defined('PP_ACTIVE') ) {
655
  </dd>
656
  </dl>
657
 
 
 
 
 
 
 
 
 
658
  <dl>
659
  <dt><?php _e('Create New Role', 'capsman-enhanced'); ?></dt>
660
  <dd style="text-align:center;">
655
  </dd>
656
  </dl>
657
 
658
+ <script type="text/javascript">
659
+ /* <![CDATA[ */
660
+ jQuery(document).ready( function($) {
661
+ $('select[name="role"]').val('<?php echo $default;?>');
662
+ });
663
+ /* ]]> */
664
+ </script>
665
+
666
  <dl>
667
  <dt><?php _e('Create New Role', 'capsman-enhanced'); ?></dt>
668
  <dd style="text-align:center;">
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: txanny, kevinB
3
  Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JWZVFUDLLYQBA
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.9.7
7
- Stable tag: 1.5.9
8
 
9
  A simple way to manage WordPress roles and capabilities.
10
 
@@ -109,6 +109,10 @@ You should have received a copy of the GNU General Public License along with thi
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 1.5.9 =
113
  * Fixed : Potential vulnerability in wp-admin (but exposure was only to users with role editing capability)
114
 
3
  Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JWZVFUDLLYQBA
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.9.8
7
+ Stable tag: 1.5.10
8
 
9
  A simple way to manage WordPress roles and capabilities.
10
 
109
 
110
  == Changelog ==
111
 
112
+ = 1.5.10 =
113
+ * Fixed : Back button caused mismatching role dropdown selection
114
+ * Compat : PHP 7.2 - warning for deprecated function if a second copy of CME is activated
115
+
116
  = 1.5.9 =
117
  * Fixed : Potential vulnerability in wp-admin (but exposure was only to users with role editing capability)
118