Version Description
- Fixed Bug: edit_category_form_fields is deprecated since version 3.0.0! https://github.com/aamplugin/advanced-access-manager/issues/115
- Fixed Bug: Incorrectly loading iframe resizer https://github.com/aamplugin/advanced-access-manager/issues/113
Download this release
Release Info
Developer | vasyltech |
Plugin | Advanced Access Manager |
Version | 6.5.1 |
Comparing to | |
See all releases |
Code changes from version 6.5.0 to 6.5.1
- aam.php +2 -2
- application/Addon/Repository.php +3 -3
- application/Backend/tmpl/index.php +3 -2
- application/Backend/tmpl/metabox/policy-principal-metabox.php +1 -1
- application/Backend/tmpl/metabox/post-iframe.php +9 -2
- application/Backend/tmpl/metabox/post-metabox.php +1 -1
- application/Backend/tmpl/metabox/term-metabox.php +1 -1
- application/Backend/tmpl/metabox/user-metabox.php +1 -1
- application/Service/Content.php +21 -5
- readme.txt +5 -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.5.
|
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.5.
|
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.5.1
|
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.5.1');
|
268 |
define('AAM_BASEDIR', __DIR__);
|
269 |
|
270 |
//load vendor
|
application/Addon/Repository.php
CHANGED
@@ -143,13 +143,13 @@ class AAM_Addon_Repository
|
|
143 |
'Plus Package',
|
144 |
'plus-package',
|
145 |
__('Manage access to your WordPress website posts, pages, media, custom post types, categories, tags and custom taxonomies for any role, individual user, visitors or even define default access for everybody; and do this separately for frontend, backend or API levels.', AAM_KEY),
|
146 |
-
'5.
|
147 |
),
|
148 |
'aam-ip-check' => $this->buildAddonObject(
|
149 |
'IP Check',
|
150 |
'ip-check',
|
151 |
__('Manage access to your WordPress website by users IP address or referred host and completely lock down the entire website if necessary. Define the unlimited number of whitelisted or blacklisted IPs or hosts.', AAM_KEY),
|
152 |
-
'4.1.
|
153 |
),
|
154 |
'aam-role-hierarchy' => $this->buildAddonObject(
|
155 |
'Role Hierarchy',
|
@@ -171,7 +171,7 @@ class AAM_Addon_Repository
|
|
171 |
'Complete Package',
|
172 |
'complete-package',
|
173 |
__('Get the complete list of all premium AAM addons in one package and all future premium addons will be included for now additional cost.', AAM_KEY),
|
174 |
-
'5.2.
|
175 |
)
|
176 |
);
|
177 |
}
|
143 |
'Plus Package',
|
144 |
'plus-package',
|
145 |
__('Manage access to your WordPress website posts, pages, media, custom post types, categories, tags and custom taxonomies for any role, individual user, visitors or even define default access for everybody; and do this separately for frontend, backend or API levels.', AAM_KEY),
|
146 |
+
'5.4.0'
|
147 |
),
|
148 |
'aam-ip-check' => $this->buildAddonObject(
|
149 |
'IP Check',
|
150 |
'ip-check',
|
151 |
__('Manage access to your WordPress website by users IP address or referred host and completely lock down the entire website if necessary. Define the unlimited number of whitelisted or blacklisted IPs or hosts.', AAM_KEY),
|
152 |
+
'4.1.3'
|
153 |
),
|
154 |
'aam-role-hierarchy' => $this->buildAddonObject(
|
155 |
'Role Hierarchy',
|
171 |
'Complete Package',
|
172 |
'complete-package',
|
173 |
__('Get the complete list of all premium AAM addons in one package and all future premium addons will be included for now additional cost.', AAM_KEY),
|
174 |
+
'5.2.5'
|
175 |
)
|
176 |
);
|
177 |
}
|
application/Backend/tmpl/index.php
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
3 |
* @since 6.5.0 https://github.com/aamplugin/advanced-access-manager/issues/104
|
4 |
* @since 6.0.0 Initial implementation of the template
|
5 |
*
|
6 |
-
* @version 6.5.
|
7 |
* */
|
8 |
?>
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<style>.wp-admin { background-color: #FFFFFF; }</style>
|
12 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=main'); ?>" width="100%" id="aam-iframe" style="border: 0; height: 100%; width: 100%; min-height: 450px;"></iframe>
|
13 |
-
<script><?php echo file_get_contents(
|
14 |
<?php }
|
1 |
<?php
|
2 |
/**
|
3 |
+
* @since 6.5.1 https://github.com/aamplugin/advanced-access-manager/issues/113
|
4 |
* @since 6.5.0 https://github.com/aamplugin/advanced-access-manager/issues/104
|
5 |
* @since 6.0.0 Initial implementation of the template
|
6 |
*
|
7 |
+
* @version 6.5.1
|
8 |
* */
|
9 |
?>
|
10 |
|
11 |
<?php if (defined('AAM_KEY')) { ?>
|
12 |
<style>.wp-admin { background-color: #FFFFFF; }</style>
|
13 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=main'); ?>" width="100%" id="aam-iframe" style="border: 0; height: 100%; width: 100%; min-height: 450px;"></iframe>
|
14 |
+
<script><?php echo file_get_contents(AAM_BASEDIR . '/media/js/iframe-resizer.js'); ?></script>
|
15 |
<?php }
|
application/Backend/tmpl/metabox/policy-principal-metabox.php
CHANGED
@@ -9,5 +9,5 @@
|
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=principal&id=' . $params->post->ID); ?>" width="100%" style="border: 0; margin-top:0;" id="aam-iframe"></iframe>
|
12 |
-
<script><?php echo file_get_contents(
|
13 |
<?php }
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=principal&id=' . $params->post->ID); ?>" width="100%" style="border: 0; margin-top:0;" id="aam-iframe"></iframe>
|
12 |
+
<script><?php echo file_get_contents(AAM_BASEDIR . '/media/js/iframe-resizer.js'); ?></script>
|
13 |
<?php }
|
application/Backend/tmpl/metabox/post-iframe.php
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
<?php if (defined('AAM_KEY')) { ?>
|
4 |
<?php echo static::loadTemplate(__DIR__ . '/iframe-header.php'); ?>
|
@@ -8,7 +15,7 @@
|
|
8 |
<?php echo static::loadTemplate(dirname(__DIR__) . '/page/subject-panel.php'); ?>
|
9 |
</div>
|
10 |
|
11 |
-
<div class="col-sm-8">
|
12 |
<div id="aam-access-form-container">
|
13 |
<?php echo $params->postManager->getAccessForm($params->objectId, $params->objectType); ?>
|
14 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @since 6.5.1 Improved styling
|
4 |
+
* @since 6.0.0 Initial implementation of the template
|
5 |
+
*
|
6 |
+
* @version 6.5.1
|
7 |
+
* */
|
8 |
+
?>
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<?php echo static::loadTemplate(__DIR__ . '/iframe-header.php'); ?>
|
15 |
<?php echo static::loadTemplate(dirname(__DIR__) . '/page/subject-panel.php'); ?>
|
16 |
</div>
|
17 |
|
18 |
+
<div class="col-sm-8" style="padding: 0;">
|
19 |
<div id="aam-access-form-container">
|
20 |
<?php echo $params->postManager->getAccessForm($params->objectId, $params->objectType); ?>
|
21 |
</div>
|
application/Backend/tmpl/metabox/post-metabox.php
CHANGED
@@ -9,5 +9,5 @@
|
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=post&id=' . $params->post->ID . '&type=post'); ?>" id="aam-iframe" width="100%" style="margin-top:10px;"></iframe>
|
12 |
-
<script><?php echo file_get_contents(
|
13 |
<?php }
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=post&id=' . $params->post->ID . '&type=post'); ?>" id="aam-iframe" width="100%" style="margin-top:10px;"></iframe>
|
12 |
+
<script><?php echo file_get_contents(AAM_BASEDIR . '/media/js/iframe-resizer.js'); ?></script>
|
13 |
<?php }
|
application/Backend/tmpl/metabox/term-metabox.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<td>
|
14 |
<div style="padding: 0px 10px; box-sizing: border-box; background-color: #FFFFFF; width: 95%;">
|
15 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=post&id=' . $params->term->term_id . '|' . $params->term->taxonomy . '|' . $params->postType . '&type=term'); ?>" width="100%" id="aam-iframe" style="margin-top:10px;"></iframe>
|
16 |
-
<script><?php echo file_get_contents(
|
17 |
</div>
|
18 |
</td>
|
19 |
</tr>
|
13 |
<td>
|
14 |
<div style="padding: 0px 10px; box-sizing: border-box; background-color: #FFFFFF; width: 95%;">
|
15 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=post&id=' . $params->term->term_id . '|' . $params->term->taxonomy . '|' . $params->postType . '&type=term'); ?>" width="100%" id="aam-iframe" style="margin-top:10px;"></iframe>
|
16 |
+
<script><?php echo file_get_contents(AAM_BASEDIR . '/media/js/iframe-resizer.js'); ?></script>
|
17 |
</div>
|
18 |
</td>
|
19 |
</tr>
|
application/Backend/tmpl/metabox/user-metabox.php
CHANGED
@@ -9,5 +9,5 @@
|
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=user&id=' . $params->user->ID); ?>" width="100%" id="aam-iframe" style="margin-top:10px;"></iframe>
|
12 |
-
<script><?php echo file_get_contents(
|
13 |
<?php }
|
9 |
|
10 |
<?php if (defined('AAM_KEY')) { ?>
|
11 |
<iframe src="<?php echo admin_url('admin.php?page=aam&aamframe=user&id=' . $params->user->ID); ?>" width="100%" id="aam-iframe" style="margin-top:10px;"></iframe>
|
12 |
+
<script><?php echo file_get_contents(AAM_BASEDIR . '/media/js/iframe-resizer.js'); ?></script>
|
13 |
<?php }
|
application/Service/Content.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
/**
|
11 |
* Posts & Terms service
|
12 |
*
|
|
|
13 |
* @since 6.4.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/71
|
14 |
* @since 6.2.0 Enhanced HIDDEN option with more granular access controls
|
15 |
* @since 6.1.0 Multiple bug fixed
|
@@ -20,7 +21,7 @@
|
|
20 |
* @since 6.0.0 Initial implementation of the class
|
21 |
*
|
22 |
* @package AAM
|
23 |
-
* @version 6.
|
24 |
*/
|
25 |
class AAM_Service_Content
|
26 |
{
|
@@ -71,8 +72,11 @@ class AAM_Service_Content
|
|
71 |
*
|
72 |
* @return void
|
73 |
*
|
|
|
|
|
|
|
74 |
* @access protected
|
75 |
-
* @version 6.
|
76 |
*/
|
77 |
protected function __construct()
|
78 |
{
|
@@ -87,9 +91,21 @@ class AAM_Service_Content
|
|
87 |
$metaboxEnabled = AAM_Core_Config::get('ui.settings.renderAccessMetabox', true);
|
88 |
|
89 |
if ($metaboxEnabled && current_user_can('aam_manage_content')) {
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
//register custom access control metabox
|
95 |
add_action('add_meta_boxes', array($this, 'registerAccessPostMetabox'));
|
10 |
/**
|
11 |
* Posts & Terms service
|
12 |
*
|
13 |
+
* @since 6.5.1 https://github.com/aamplugin/advanced-access-manager/issues/115
|
14 |
* @since 6.4.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/71
|
15 |
* @since 6.2.0 Enhanced HIDDEN option with more granular access controls
|
16 |
* @since 6.1.0 Multiple bug fixed
|
21 |
* @since 6.0.0 Initial implementation of the class
|
22 |
*
|
23 |
* @package AAM
|
24 |
+
* @version 6.5.1
|
25 |
*/
|
26 |
class AAM_Service_Content
|
27 |
{
|
72 |
*
|
73 |
* @return void
|
74 |
*
|
75 |
+
* @since 6.5.1 https://github.com/aamplugin/advanced-access-manager/issues/115
|
76 |
+
* @since 6.0.0 Initial implementation of the method
|
77 |
+
*
|
78 |
* @access protected
|
79 |
+
* @version 6.5.1
|
80 |
*/
|
81 |
protected function __construct()
|
82 |
{
|
91 |
$metaboxEnabled = AAM_Core_Config::get('ui.settings.renderAccessMetabox', true);
|
92 |
|
93 |
if ($metaboxEnabled && current_user_can('aam_manage_content')) {
|
94 |
+
// Make sure that all already registered taxonomies are hooked
|
95 |
+
foreach(get_taxonomies() as $taxonomy) {
|
96 |
+
add_action(
|
97 |
+
"{$taxonomy}_edit_form_fields",
|
98 |
+
array($this, 'renderAccessTermMetabox')
|
99 |
+
);
|
100 |
+
}
|
101 |
+
|
102 |
+
// Hook into still up-coming taxonomies down the pipeline
|
103 |
+
add_action('registered_taxonomy', function($taxonomy) {
|
104 |
+
add_action(
|
105 |
+
"{$taxonomy}_edit_form_fields",
|
106 |
+
array($this, 'renderAccessTermMetabox')
|
107 |
+
);
|
108 |
+
});
|
109 |
|
110 |
//register custom access control metabox
|
111 |
add_action('add_meta_boxes', array($this, 'registerAccessPostMetabox'));
|
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.4.1
|
7 |
-
Stable tag: 6.5.
|
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,10 @@ We take security and privacy very seriously, that is why there are several non-n
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 6.5.0 =
|
95 |
* Fixed Bug: No visual loading process in the Post Access metabox [https://github.com/aamplugin/advanced-access-manager/issues/111](https://github.com/aamplugin/advanced-access-manager/issues/111)
|
96 |
* Fixed Bug: Safari browser cropps the modals [https://github.com/aamplugin/advanced-access-manager/issues/107](https://github.com/aamplugin/advanced-access-manager/issues/107)
|
4 |
Requires at least: 4.7.0
|
5 |
Requires PHP: 5.6.0
|
6 |
Tested up to: 5.4.1
|
7 |
+
Stable tag: 6.5.1
|
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.5.1 =
|
95 |
+
* Fixed Bug: edit_category_form_fields is deprecated since version 3.0.0! [https://github.com/aamplugin/advanced-access-manager/issues/115](https://github.com/aamplugin/advanced-access-manager/issues/115)
|
96 |
+
* Fixed Bug: Incorrectly loading iframe resizer [https://github.com/aamplugin/advanced-access-manager/issues/113](https://github.com/aamplugin/advanced-access-manager/issues/113)
|
97 |
+
|
98 |
= 6.5.0 =
|
99 |
* Fixed Bug: No visual loading process in the Post Access metabox [https://github.com/aamplugin/advanced-access-manager/issues/111](https://github.com/aamplugin/advanced-access-manager/issues/111)
|
100 |
* Fixed Bug: Safari browser cropps the modals [https://github.com/aamplugin/advanced-access-manager/issues/107](https://github.com/aamplugin/advanced-access-manager/issues/107)
|