Advanced Access Manager - Version 6.7.3

Version Description

  • Fixed Bug: Incorrectly handled .attr('checked') by the latest jQuery update https://github.com/aamplugin/advanced-access-manager/issues/166
Download this release

Release Info

Developer vasyltech
Plugin Icon 128x128 Advanced Access Manager
Version 6.7.3
Comparing to
See all releases

Code changes from version 6.7.2 to 6.7.3

Files changed (4) hide show
  1. aam.php +2 -2
  2. application/Core/Jwt/Issuer.php +6 -2
  3. media/js/aam.js +9 -8
  4. readme.txt +4 -1
aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
- * Version: 6.7.2
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
@@ -264,7 +264,7 @@ if (defined('ABSPATH')) {
264
  //define few common constants
265
  define('AAM_MEDIA', plugins_url('/media', __FILE__));
266
  define('AAM_KEY', 'advanced-access-manager');
267
- define('AAM_VERSION', '6.7.2');
268
  define('AAM_BASEDIR', __DIR__);
269
 
270
  //load vendor
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
+ * Version: 6.7.3
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
264
  //define few common constants
265
  define('AAM_MEDIA', plugins_url('/media', __FILE__));
266
  define('AAM_KEY', 'advanced-access-manager');
267
+ define('AAM_VERSION', '6.7.3');
268
  define('AAM_BASEDIR', __DIR__);
269
 
270
  //load vendor
application/Core/Jwt/Issuer.php CHANGED
@@ -10,13 +10,14 @@
10
  /**
11
  * AAM JWT Issuer
12
  *
 
13
  * @since 6.1.0 Enriched error response with more details
14
  * @since 6.0.4 Bug fixing. Timezone was handled incorrectly and ttl did not take in
15
  * consideration numeric "in seconds" value
16
  * @since 6.0.0 Initial implementation of the class
17
  *
18
  * @package AAM
19
- * @version 6.1.0
20
  */
21
  class AAM_Core_Jwt_Issuer
22
  {
@@ -196,8 +197,11 @@ class AAM_Core_Jwt_Issuer
196
  *
197
  * @return object
198
  *
 
 
 
199
  * @access protected
200
- * @version 6.0.0
201
  */
202
  protected function getJWTSigningAttributes()
203
  {
10
  /**
11
  * AAM JWT Issuer
12
  *
13
+ * @since 6.7.2 https://github.com/aamplugin/advanced-access-manager/issues/165
14
  * @since 6.1.0 Enriched error response with more details
15
  * @since 6.0.4 Bug fixing. Timezone was handled incorrectly and ttl did not take in
16
  * consideration numeric "in seconds" value
17
  * @since 6.0.0 Initial implementation of the class
18
  *
19
  * @package AAM
20
+ * @version 6.7.2
21
  */
22
  class AAM_Core_Jwt_Issuer
23
  {
197
  *
198
  * @return object
199
  *
200
+ * @since 6.7.2 https://github.com/aamplugin/advanced-access-manager/issues/165
201
+ * @since 6.0.0 Initial implementation of the method
202
+ *
203
  * @access protected
204
+ * @version 6.7.2
205
  */
206
  protected function getJWTSigningAttributes()
207
  {
media/js/aam.js CHANGED
@@ -402,7 +402,7 @@
402
  $('input,select', '#add-role-modal .modal-body').each(function () {
403
  if ($(this).attr('name')) {
404
  if ($(this).attr('type') === 'checkbox') {
405
- data[$(this).attr('name')] = $(this).prop('checked') ? true : false;
406
  } else {
407
  data[$(this).attr('name')] = $.trim($(this).val());
408
  }
@@ -464,7 +464,7 @@
464
  $('input,select', '#edit-role-modal .modal-body').each(function () {
465
  if ($(this).attr('name')) {
466
  if ($(this).attr('type') === 'checkbox') {
467
- data[$(this).attr('name')] = $(this).prop('checked') ? 1 : 0;
468
  } else {
469
  data[$(this).attr('name')] = $.trim($(this).val());
470
  }
@@ -1786,13 +1786,14 @@
1786
  $('input[type="checkbox"]', '#admin-menu').each(function () {
1787
  $(this).bind('click', function () {
1788
  var _this = $(this);
 
1789
  save(
1790
  [_this.data('menu-id')],
1791
- _this.attr('checked') ? 1 : 0,
1792
  function (result) {
1793
  if (result.status === 'success') {
1794
  $('#aam-menu-overwrite').show();
1795
- if (_this.attr('checked')) {
1796
  _this.next().attr('data-original-title', getAAM().__('Uncheck to allow'));
1797
  } else {
1798
  _this.next().attr('data-original-title', getAAM().__('Check to restrict'));
@@ -1923,12 +1924,12 @@
1923
  var _this = $(this);
1924
  save(
1925
  [$(this).data('toolbar')],
1926
- $(this).attr('checked') ? 1 : 0,
1927
  function (result) {
1928
  if (result.status === 'success') {
1929
  $('#aam-toolbar-overwrite').show();
1930
 
1931
- if (_this.attr('checked')) {
1932
  _this.next().attr('data-original-title', getAAM().__('Uncheck to show'));
1933
  } else {
1934
  _this.next().attr('data-original-title', getAAM().__('Check to hide'));
@@ -2112,12 +2113,12 @@
2112
  var _this = $(this);
2113
  save(
2114
  [$(this).data('metabox')],
2115
- $(this).attr('checked'),
2116
  function (result) {
2117
  if (result.status === 'success') {
2118
  $('#aam-metabox-overwrite').show();
2119
 
2120
- if (_this.attr('checked')) {
2121
  _this.next().attr('data-original-title', getAAM().__('Uncheck to show'));
2122
  } else {
2123
  _this.next().attr('data-original-title', getAAM().__('Check to hide'));
402
  $('input,select', '#add-role-modal .modal-body').each(function () {
403
  if ($(this).attr('name')) {
404
  if ($(this).attr('type') === 'checkbox') {
405
+ data[$(this).attr('name')] = $(this).is(':checked') ? true : false;
406
  } else {
407
  data[$(this).attr('name')] = $.trim($(this).val());
408
  }
464
  $('input,select', '#edit-role-modal .modal-body').each(function () {
465
  if ($(this).attr('name')) {
466
  if ($(this).attr('type') === 'checkbox') {
467
+ data[$(this).attr('name')] = $(this).is(':checked') ? 1 : 0;
468
  } else {
469
  data[$(this).attr('name')] = $.trim($(this).val());
470
  }
1786
  $('input[type="checkbox"]', '#admin-menu').each(function () {
1787
  $(this).bind('click', function () {
1788
  var _this = $(this);
1789
+
1790
  save(
1791
  [_this.data('menu-id')],
1792
+ _this.is(':checked') ? 1 : 0,
1793
  function (result) {
1794
  if (result.status === 'success') {
1795
  $('#aam-menu-overwrite').show();
1796
+ if (_this.is(':checked')) {
1797
  _this.next().attr('data-original-title', getAAM().__('Uncheck to allow'));
1798
  } else {
1799
  _this.next().attr('data-original-title', getAAM().__('Check to restrict'));
1924
  var _this = $(this);
1925
  save(
1926
  [$(this).data('toolbar')],
1927
+ $(this).is(':checked') ? 1 : 0,
1928
  function (result) {
1929
  if (result.status === 'success') {
1930
  $('#aam-toolbar-overwrite').show();
1931
 
1932
+ if (_this.is(':checked')) {
1933
  _this.next().attr('data-original-title', getAAM().__('Uncheck to show'));
1934
  } else {
1935
  _this.next().attr('data-original-title', getAAM().__('Check to hide'));
2113
  var _this = $(this);
2114
  save(
2115
  [$(this).data('metabox')],
2116
+ $(this).is(':checked'),
2117
  function (result) {
2118
  if (result.status === 'success') {
2119
  $('#aam-metabox-overwrite').show();
2120
 
2121
+ if (_this.is(':checked')) {
2122
  _this.next().attr('data-original-title', getAAM().__('Uncheck to show'));
2123
  } else {
2124
  _this.next().attr('data-original-title', getAAM().__('Check to hide'));
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: access control, membership, backend menu, user role, restricted content, s
4
  Requires at least: 4.7.0
5
  Requires PHP: 5.6.0
6
  Tested up to: 5.6.0
7
- Stable tag: 6.7.2
8
 
9
  All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
10
 
@@ -91,6 +91,9 @@ We take security and privacy very seriously, that is why there are several non-n
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 6.7.2 =
95
  * Fixed Bug: PHP Warning: preg_match(): Compilation failed [https://github.com/aamplugin/advanced-access-manager/issues/163](https://github.com/aamplugin/advanced-access-manager/issues/163)
96
  * Added New: Thx to [@sigysmund](https://github.com/sigysmund). Support for OpenSSL RSA private keys, to have a passphrase [https://github.com/aamplugin/advanced-access-manager/issues/165](https://github.com/aamplugin/advanced-access-manager/issues/165)
4
  Requires at least: 4.7.0
5
  Requires PHP: 5.6.0
6
  Tested up to: 5.6.0
7
+ Stable tag: 6.7.3
8
 
9
  All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 6.7.3 =
95
+ * Fixed Bug: Incorrectly handled .attr('checked') by the latest jQuery update [https://github.com/aamplugin/advanced-access-manager/issues/166](https://github.com/aamplugin/advanced-access-manager/issues/166)
96
+
97
  = 6.7.2 =
98
  * Fixed Bug: PHP Warning: preg_match(): Compilation failed [https://github.com/aamplugin/advanced-access-manager/issues/163](https://github.com/aamplugin/advanced-access-manager/issues/163)
99
  * Added New: Thx to [@sigysmund](https://github.com/sigysmund). Support for OpenSSL RSA private keys, to have a passphrase [https://github.com/aamplugin/advanced-access-manager/issues/165](https://github.com/aamplugin/advanced-access-manager/issues/165)