Version Description
- Bug fixing
Download this release
Release Info
Developer | vasyl_m |
Plugin | Advanced Access Manager |
Version | 3.6.1 |
Comparing to | |
See all releases |
Code changes from version 3.6 to 3.6.1
Application/Backend/Feature/ProductList.php
CHANGED
@@ -14,7 +14,7 @@ return array(
|
|
14 |
'type' => 'commercial',
|
15 |
'cost' => '$30',
|
16 |
'currency' => 'USD',
|
17 |
-
'description' => __('
|
18 |
'storeURL' => 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FGAHULDEFZV4U',
|
19 |
'status' => AAM_Core_Repository::getInstance()->extensionStatus('AAM Plus Package'),
|
20 |
'version' => AAM_Core_Repository::getInstance()->getExtensionVersion('AAM Plus Package')
|
14 |
'type' => 'commercial',
|
15 |
'cost' => '$30',
|
16 |
'currency' => 'USD',
|
17 |
+
'description' => __('Our best selling extension that allows you to setup access to unlimited number of posts, pages or custom post types as well as define default access to ALL posts, pages, custom post types, categories or custom taxonomies.', AAM_KEY),
|
18 |
'storeURL' => 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FGAHULDEFZV4U',
|
19 |
'status' => AAM_Core_Repository::getInstance()->extensionStatus('AAM Plus Package'),
|
20 |
'version' => AAM_Core_Repository::getInstance()->getExtensionVersion('AAM Plus Package')
|
Application/Backend/phtml/object/capability.phtml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<div class="row">
|
6 |
<div class="col-xs-12">
|
7 |
<p class="aam-info">
|
8 |
-
<?php echo AAM_Backend_View_Helper::preparePhrase('You are not allowed to assign or create a new capability that does not belong to [
|
9 |
</p>
|
10 |
</div>
|
11 |
</div>
|
@@ -71,7 +71,7 @@
|
|
71 |
<label for="capability-id"><?php echo __('Capability', AAM_KEY); ?><span class="aam-asterix">*</span></label>
|
72 |
<input type="text" class="form-control" id="capability-id" placeholder="<?php echo __('Enter Capability', AAM_KEY); ?>" />
|
73 |
</div>
|
74 |
-
<p class="aam-info aam-hint"><?php echo AAM_Backend_View_Helper::preparePhrase(
|
75 |
</div>
|
76 |
<div class="modal-footer">
|
77 |
<button type="button" class="btn btn-warning" id="update-capability-btn"><?php echo __('Update', AAM_KEY); ?></button>
|
5 |
<div class="row">
|
6 |
<div class="col-xs-12">
|
7 |
<p class="aam-info">
|
8 |
+
<?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('You are not allowed to assign or create a new capability that does not belong to [%s] role. You may consider to creating a new role with desired list of capabilities and assign user to it.', 'strong'), implode(' , ', $this->getUserRoles($subject->roles))); ?>
|
9 |
</p>
|
10 |
</div>
|
11 |
</div>
|
71 |
<label for="capability-id"><?php echo __('Capability', AAM_KEY); ?><span class="aam-asterix">*</span></label>
|
72 |
<input type="text" class="form-control" id="capability-id" placeholder="<?php echo __('Enter Capability', AAM_KEY); ?>" />
|
73 |
</div>
|
74 |
+
<p class="aam-info aam-hint"><?php echo AAM_Backend_View_Helper::preparePhrase('[Please notice!] Capability will be updated for all roles. Any functionality that depends on current Capability may not work properly.', 'strong'); ?></p>
|
75 |
</div>
|
76 |
<div class="modal-footer">
|
77 |
<button type="button" class="btn btn-warning" id="update-capability-btn"><?php echo __('Update', AAM_KEY); ?></button>
|
Application/Backend/phtml/utility.phtml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<div class="row">
|
4 |
<div class="col-xs-12">
|
5 |
<p class="aam-info">
|
6 |
-
<?php echo sprintf(
|
7 |
</p>
|
8 |
</div>
|
9 |
</div>
|
@@ -25,7 +25,7 @@
|
|
25 |
<td>
|
26 |
<span class='aam-setting-title'><?php echo __('Backend Access Control', AAM_KEY); ?></span>
|
27 |
<p class="aam-setting-description">
|
28 |
-
<?php echo
|
29 |
</p>
|
30 |
</td>
|
31 |
<td>
|
@@ -36,7 +36,7 @@
|
|
36 |
<td>
|
37 |
<span class='aam-setting-title'><?php echo __('Frontend Access Control', AAM_KEY); ?></span>
|
38 |
<p class="aam-setting-description">
|
39 |
-
<?php echo
|
40 |
</p>
|
41 |
</td>
|
42 |
<td>
|
3 |
<div class="row">
|
4 |
<div class="col-xs-12">
|
5 |
<p class="aam-info">
|
6 |
+
<?php echo sprintf(__('To learn more about AAM Utilities check %sAAM Utilities%s article.', AAM_KEY), '<a href="http://vasyltech.com/blog/aam-utilities" target="_blank">', '</a>'); ?><br/>
|
7 |
</p>
|
8 |
</div>
|
9 |
</div>
|
25 |
<td>
|
26 |
<span class='aam-setting-title'><?php echo __('Backend Access Control', AAM_KEY); ?></span>
|
27 |
<p class="aam-setting-description">
|
28 |
+
<?php echo __('Use AAM to control access to posts, pages, categories, menus and metaboxes etc. Disable this setting to stop AAM from controling access for backend.', AAM_KEY); ?>
|
29 |
</p>
|
30 |
</td>
|
31 |
<td>
|
36 |
<td>
|
37 |
<span class='aam-setting-title'><?php echo __('Frontend Access Control', AAM_KEY); ?></span>
|
38 |
<p class="aam-setting-description">
|
39 |
+
<?php echo __('Use AAM to control access to posts, pages, categories, menus and widgets. Disable this setting to stop AAM from controling access for frontend.', AAM_KEY); ?>
|
40 |
</p>
|
41 |
</td>
|
42 |
<td>
|
Application/Core/API.php
CHANGED
@@ -211,9 +211,12 @@ final class AAM_Core_API {
|
|
211 |
call_user_func($redirect, $args);
|
212 |
} elseif (!empty($args['callback']) && is_callable($args['callback'])) {
|
213 |
call_user_func($args['callback'], $message, '', array());
|
|
|
|
|
214 |
}
|
|
|
|
|
215 |
}
|
216 |
-
if (empty($args['skip-die'])) { wp_die($message); }
|
217 |
exit;
|
218 |
}
|
219 |
|
211 |
call_user_func($redirect, $args);
|
212 |
} elseif (!empty($args['callback']) && is_callable($args['callback'])) {
|
213 |
call_user_func($args['callback'], $message, '', array());
|
214 |
+
} else {
|
215 |
+
wp_die($message);
|
216 |
}
|
217 |
+
} else {
|
218 |
+
if (empty($args['skip-die'])) { wp_die($message); }
|
219 |
}
|
|
|
220 |
exit;
|
221 |
}
|
222 |
|
Application/Core/ConfigPress.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* ======================================================================
|
5 |
+
* LICENSE: This file is subject to the terms and conditions defined in *
|
6 |
+
* file 'license.txt', which is part of this source code package. *
|
7 |
+
* ======================================================================
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* ConfigPress layer
|
12 |
+
*
|
13 |
+
* @package AAM
|
14 |
+
* @author Vasyl Martyniuk <vasyl@vasyltech.com>
|
15 |
+
* @todo Deprecated - Remove in May 2017
|
16 |
+
*/
|
17 |
+
final class AAM_Core_ConfigPress {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Get ConfigPress parameter
|
21 |
+
*
|
22 |
+
* @param string $param
|
23 |
+
* @param mixed $default
|
24 |
+
*
|
25 |
+
* @return mixed
|
26 |
+
*
|
27 |
+
* @access public
|
28 |
+
* @static
|
29 |
+
*/
|
30 |
+
public static function get($param, $default = null) {
|
31 |
+
if (class_exists('ConfigPress')) {
|
32 |
+
$response = ConfigPress::get($param, $default);
|
33 |
+
} else {
|
34 |
+
$response = $default;
|
35 |
+
}
|
36 |
+
|
37 |
+
return self::parseParam($response, $default);
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Parse found parameter
|
42 |
+
*
|
43 |
+
* @param mixed $param
|
44 |
+
* @param mixed $default
|
45 |
+
*
|
46 |
+
* @return mixed
|
47 |
+
*
|
48 |
+
* @access protected
|
49 |
+
* @static
|
50 |
+
*/
|
51 |
+
protected static function parseParam($param, $default) {
|
52 |
+
if (is_array($param) && isset($param['userFunc'])) {
|
53 |
+
if (is_callable($param['userFunc'])) {
|
54 |
+
$response = call_user_func($param['userFunc']);
|
55 |
+
} else {
|
56 |
+
$response = $default;
|
57 |
+
}
|
58 |
+
} else {
|
59 |
+
$response = $param;
|
60 |
+
}
|
61 |
+
|
62 |
+
return $response;
|
63 |
+
}
|
64 |
+
|
65 |
+
}
|
aam.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage User and Role Access to WordPress Backend and Frontend.
|
6 |
-
Version: 3.6
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: http://www.vasyltech.com
|
9 |
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage User and Role Access to WordPress Backend and Frontend.
|
6 |
+
Version: 3.6.1
|
7 |
Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
Author URI: http://www.vasyltech.com
|
9 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
|
|
3 |
Tags: access, role, user, capability, page, post, permission, security
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.5.3
|
6 |
-
Stable tag: 3.6
|
7 |
|
8 |
One of the best tools in WordPress repository to manage access to your posts,
|
9 |
pages, categories and backend area for users, roles and visitors.
|
@@ -54,9 +54,13 @@ out more about the Advanced Access Manager.
|
|
54 |
3. User/Role Capabilities manager
|
55 |
4. Posts & Pages manager
|
56 |
5. Posts & Pages access control form
|
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 3.6 =
|
61 |
* Added Media Access Control feature
|
62 |
* Added Access Denied Handling feature
|
3 |
Tags: access, role, user, capability, page, post, permission, security
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.5.3
|
6 |
+
Stable tag: 3.6.1
|
7 |
|
8 |
One of the best tools in WordPress repository to manage access to your posts,
|
9 |
pages, categories and backend area for users, roles and visitors.
|
54 |
3. User/Role Capabilities manager
|
55 |
4. Posts & Pages manager
|
56 |
5. Posts & Pages access control form
|
57 |
+
6. Utilities tab
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= 3.6.1 =
|
62 |
+
* Bug fixing
|
63 |
+
|
64 |
= 3.6 =
|
65 |
* Added Media Access Control feature
|
66 |
* Added Access Denied Handling feature
|