Capability Manager Enhanced - Version 2.5.2

Version Description

  • 04 Oct 2022 =
    • Update : Changes to Import/Export encoding method
Download this release

Release Info

Developer olatechpro
Plugin Icon 128x128 Capability Manager Enhanced
Version 2.5.2
Comparing to
See all releases

Code changes from version 2.5.1 to 2.5.2

capsman-enhanced.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: PublishPress Capabilities
4
  * Plugin URI: https://publishpress.com/capability-manager/
5
  * Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
6
- * Version: 2.5.1
7
  * Author: PublishPress
8
  * Author URI: https://publishpress.com/
9
  * Text Domain: capsman-enhanced
@@ -44,7 +44,7 @@ if (class_exists('PublishPressInstanceProtection\\Config')) {
44
  }
45
 
46
  if (!defined('CAPSMAN_VERSION')) {
47
- define('CAPSMAN_VERSION', '2.5.1');
48
  define('CAPSMAN_ENH_VERSION', CAPSMAN_VERSION);
49
  define('PUBLISHPRESS_CAPS_VERSION', CAPSMAN_VERSION);
50
  }
3
  * Plugin Name: PublishPress Capabilities
4
  * Plugin URI: https://publishpress.com/capability-manager/
5
  * Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
6
+ * Version: 2.5.2
7
  * Author: PublishPress
8
  * Author URI: https://publishpress.com/
9
  * Text Domain: capsman-enhanced
44
  }
45
 
46
  if (!defined('CAPSMAN_VERSION')) {
47
+ define('CAPSMAN_VERSION', '2.5.2');
48
  define('CAPSMAN_ENH_VERSION', CAPSMAN_VERSION);
49
  define('PUBLISHPRESS_CAPS_VERSION', CAPSMAN_VERSION);
50
  }
includes/backup-handler.php CHANGED
@@ -168,7 +168,7 @@ class Capsman_BackupHandler
168
 
169
  // Get the upload data.
170
  $raw = file_get_contents( $file['file'] );
171
- $data = maybe_unserialize( $raw );
172
 
173
  // Remove the uploaded file.
174
  wp_delete_file( $file['file'] );
168
 
169
  // Get the upload data.
170
  $raw = file_get_contents( $file['file'] );
171
+ $data = json_decode($raw, true);
172
 
173
  // Remove the uploaded file.
174
  wp_delete_file( $file['file'] );
includes/manager.php CHANGED
@@ -972,8 +972,8 @@ class CapabilityManager
972
  header( 'Content-Disposition: attachment; filename=capabilities-export-' . current_time('Y-m-d_g-i-s_a') . '.json' );
973
  header( "Expires: 0" );
974
 
975
- // Serialize the export data.
976
- echo serialize( $data );
977
 
978
  // Start the download.
979
  die();
972
  header( 'Content-Disposition: attachment; filename=capabilities-export-' . current_time('Y-m-d_g-i-s_a') . '.json' );
973
  header( "Expires: 0" );
974
 
975
+ // encode the export data.
976
+ echo json_encode($data);
977
 
978
  // Start the download.
979
  die();
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: user roles, capabilities, permissions, admin menus, post editing, post typ
7
  Requires at least: 4.9.7
8
  Tested up to: 6.0
9
  Requires PHP: 5.6.20
10
- Stable tag: 2.5.1
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
@@ -409,6 +409,9 @@ Fixed : Security issue. Please update.
409
 
410
  == Changelog ==
411
 
 
 
 
412
  = 2.5.1 - 13 Sep 2022 =
413
  * Added : Ability to block user login by role #510
414
  * Update : Add disable WooCommerce admin restrictions in role settings #549
7
  Requires at least: 4.9.7
8
  Tested up to: 6.0
9
  Requires PHP: 5.6.20
10
+ Stable tag: 2.5.2
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
409
 
410
  == Changelog ==
411
 
412
+ = 2.5.2 - 04 Oct 2022 =
413
+ * Update : Changes to Import/Export encoding method
414
+
415
  = 2.5.1 - 13 Sep 2022 =
416
  * Added : Ability to block user login by role #510
417
  * Update : Add disable WooCommerce admin restrictions in role settings #549