Version Description
If upgrading from a version prior to 2.0.0, please note that the plugin now requires PHP 5.3.0 or later.
Download this release
Release Info
Developer | greenshady |
Plugin | Members |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.1.0
- admin/class-addon.php +2 -2
- admin/class-cap-control.php +1 -1
- admin/class-cap-section.php +1 -1
- admin/class-cap-tabs.php +1 -1
- admin/class-manage-roles.php +1 -1
- admin/class-manage-users.php +1 -1
- admin/class-meta-box-content-permissions.php +1 -1
- admin/class-meta-box-custom-cap.php +1 -1
- admin/class-meta-box-publish-role.php +1 -1
- admin/class-role-edit.php +1 -1
- admin/class-role-list-table.php +1 -1
- admin/class-role-new.php +2 -2
- admin/class-roles.php +1 -1
- admin/class-settings.php +1 -1
- admin/class-user-edit.php +1 -1
- admin/class-user-new.php +1 -1
- admin/functions-addons.php +1 -1
- admin/functions-admin.php +1 -1
- admin/functions-help.php +1 -1
- admin/functions-settings.php +1 -1
- admin/tmpl/cap-control.php +1 -1
- admin/tmpl/cap-section.php +1 -1
- admin/views/class-view-addons.php +1 -1
- admin/views/class-view-general.php +1 -1
- admin/views/class-view.php +1 -1
- changelog.md +19 -0
- img/icon-members-core-create-caps.png +0 -0
- inc/class-cap-group.php +1 -1
- inc/class-capability.php +1 -1
- inc/class-registry.php +1 -1
- inc/class-role-group.php +1 -1
- inc/class-role.php +1 -1
- inc/class-widget-login.php +1 -1
- inc/class-widget-users.php +1 -1
- inc/functions-admin-bar.php +1 -1
- inc/functions-cap-groups.php +1 -1
- inc/functions-capabilities.php +1 -1
- inc/functions-deprecated.php +1 -1
- inc/functions-options.php +1 -1
- inc/functions-private-site.php +2 -2
- inc/functions-role-groups.php +1 -1
- inc/functions-roles.php +8 -1
- inc/functions-shortcodes.php +54 -1
- inc/functions-users.php +1 -1
- inc/functions-widgets.php +1 -1
- inc/functions.php +1 -1
- inc/template.php +1 -1
- members.php +3 -3
- readme.md +9 -1
- readme.txt +6 -4
admin/class-addon.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
@@ -168,6 +168,6 @@ final class Addon {
|
|
168 |
$this->name = sanitize_key( $name );
|
169 |
|
170 |
if ( ! $this->icon_url )
|
171 |
-
$this->icon_url = members_plugin()->
|
172 |
}
|
173 |
}
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
168 |
$this->name = sanitize_key( $name );
|
169 |
|
170 |
if ( ! $this->icon_url )
|
171 |
+
$this->icon_url = members_plugin()->uri . 'img/icon-addon.png';
|
172 |
}
|
173 |
}
|
admin/class-cap-control.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-cap-section.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-cap-tabs.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-manage-roles.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-manage-users.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-meta-box-content-permissions.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-meta-box-custom-cap.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-meta-box-publish-role.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-role-edit.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-role-list-table.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-role-new.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
@@ -195,7 +195,7 @@ final class Role_New {
|
|
195 |
|
196 |
// Sanitize the new role name/label. We just want to strip any tags here.
|
197 |
if ( ! empty( $_POST['role_name'] ) )
|
198 |
-
$this->role_name = wp_strip_all_tags( $_POST['role_name'] );
|
199 |
|
200 |
// Sanitize the new role, removing any unwanted characters.
|
201 |
if ( ! empty( $_POST['role'] ) )
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
195 |
|
196 |
// Sanitize the new role name/label. We just want to strip any tags here.
|
197 |
if ( ! empty( $_POST['role_name'] ) )
|
198 |
+
$this->role_name = wp_strip_all_tags( wp_unslash( $_POST['role_name'] ) );
|
199 |
|
200 |
// Sanitize the new role, removing any unwanted characters.
|
201 |
if ( ! empty( $_POST['role'] ) )
|
admin/class-roles.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-settings.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-user-edit.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/class-user-new.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/functions-addons.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package Members
|
7 |
* @subpackage Includes
|
8 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
9 |
-
* @copyright Copyright (c) 2009 -
|
10 |
* @link https://themehybrid.com/plugins/members
|
11 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
*/
|
6 |
* @package Members
|
7 |
* @subpackage Includes
|
8 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
9 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
10 |
* @link https://themehybrid.com/plugins/members
|
11 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
*/
|
admin/functions-admin.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/functions-help.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/functions-settings.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/tmpl/cap-control.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/tmpl/cap-section.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/views/class-view-addons.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/views/class-view-general.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
admin/views/class-view.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
changelog.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1 |
# Change Log
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
## [2.0.2] - 2017-11-06
|
4 |
|
5 |
### Fixed
|
1 |
# Change Log
|
2 |
|
3 |
+
## [2.1.0] - 2018-04-19
|
4 |
+
|
5 |
+
### Added
|
6 |
+
|
7 |
+
* `user_name` parameter for the `[members_access]` shortcode.
|
8 |
+
* `user_id` parameter for the `[members_access]` shortcode.
|
9 |
+
* `user_email` parameter for the `[members_access]` shortcode.
|
10 |
+
* `icon-members-core-create-caps.png` file for local access to the corresponding add-on thumbnail.
|
11 |
+
|
12 |
+
### Fixed
|
13 |
+
|
14 |
+
* Incorrect roles (or empty roles) appearing on sub-sites when running multisite.
|
15 |
+
* Invalid icon URL on the Settings > Members > Add-ons admin screen.
|
16 |
+
* Fix for WooCommerce empty page ID in the private site feature.
|
17 |
+
|
18 |
+
### Changed
|
19 |
+
|
20 |
+
* Bumped minimum PHP requirement to 5.6+. However, the code should still work on PHP 5.3. This is in preparation for a hard requirement of 5.6+ when version 3.0.0 is released.
|
21 |
+
|
22 |
## [2.0.2] - 2017-11-06
|
23 |
|
24 |
### Fixed
|
img/icon-members-core-create-caps.png
ADDED
Binary file
|
inc/class-cap-group.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/class-capability.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/class-registry.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/class-role-group.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/class-role.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package Members
|
7 |
* @subpackage Includes
|
8 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
9 |
-
* @copyright Copyright (c) 2009 -
|
10 |
* @link https://themehybrid.com/plugins/members
|
11 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
*/
|
6 |
* @package Members
|
7 |
* @subpackage Includes
|
8 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
9 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
10 |
* @link https://themehybrid.com/plugins/members
|
11 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
*/
|
inc/class-widget-login.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/class-widget-users.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-admin-bar.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-cap-groups.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-capabilities.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-deprecated.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-options.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-private-site.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Members
|
8 |
* @subpackage Includes
|
9 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
10 |
-
* @copyright Copyright (c) 2009 -
|
11 |
* @link https://themehybrid.com/plugins/members
|
12 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
*/
|
@@ -114,7 +114,7 @@ function members_is_private_page() {
|
|
114 |
if ( class_exists( 'WooCommerce' ) ) {
|
115 |
$page_id = get_option( 'woocommerce_myaccount_page_id' );
|
116 |
|
117 |
-
if ( is_page( $page_id ) )
|
118 |
$is_private = false;
|
119 |
}
|
120 |
|
7 |
* @package Members
|
8 |
* @subpackage Includes
|
9 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
10 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
11 |
* @link https://themehybrid.com/plugins/members
|
12 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
*/
|
114 |
if ( class_exists( 'WooCommerce' ) ) {
|
115 |
$page_id = get_option( 'woocommerce_myaccount_page_id' );
|
116 |
|
117 |
+
if ( $page_id && is_page( $page_id ) )
|
118 |
$is_private = false;
|
119 |
}
|
120 |
|
inc/functions-role-groups.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Admin
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-roles.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
@@ -46,6 +46,13 @@ function members_register_default_roles( $wp_roles ) {
|
|
46 |
|
47 |
members_register_role( $name, $args );
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
/**
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
46 |
|
47 |
members_register_role( $name, $args );
|
48 |
}
|
49 |
+
|
50 |
+
// Unset any roles that were registered previously but are not currently available.
|
51 |
+
foreach ( members_get_roles() as $role ) {
|
52 |
+
|
53 |
+
if ( ! isset( $wp_roles->roles[ $role->name ] ) )
|
54 |
+
members_unregister_role( $role->name );
|
55 |
+
}
|
56 |
}
|
57 |
|
58 |
/**
|
inc/functions-shortcodes.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
@@ -114,6 +114,9 @@ function members_access_check_shortcode( $attr, $content = null ) {
|
|
114 |
$defaults = array(
|
115 |
'capability' => '', // Single capability or comma-separated multiple capabilities.
|
116 |
'role' => '', // Single role or comma-separated multiple roles.
|
|
|
|
|
|
|
117 |
'operator' => 'or' // Only the `!` operator is supported for now. Everything else falls back to `or`.
|
118 |
);
|
119 |
|
@@ -147,6 +150,56 @@ function members_access_check_shortcode( $attr, $content = null ) {
|
|
147 |
return members_current_user_has_role( $roles ) ? do_shortcode( $content ) : '';
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
// Return an empty string if we've made it to this point.
|
151 |
return '';
|
152 |
}
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
114 |
$defaults = array(
|
115 |
'capability' => '', // Single capability or comma-separated multiple capabilities.
|
116 |
'role' => '', // Single role or comma-separated multiple roles.
|
117 |
+
'user_id' => '', // Single user ID or comma-separated multiple IDs.
|
118 |
+
'user_name' => '', // Single user name or comma-separated multiple names.
|
119 |
+
'user_email' => '', // Single user email or comma-separated multiple emails.
|
120 |
'operator' => 'or' // Only the `!` operator is supported for now. Everything else falls back to `or`.
|
121 |
);
|
122 |
|
150 |
return members_current_user_has_role( $roles ) ? do_shortcode( $content ) : '';
|
151 |
}
|
152 |
|
153 |
+
$user_id = 0;
|
154 |
+
$user_name = $user_email = '';
|
155 |
+
|
156 |
+
if ( is_user_logged_in() ) {
|
157 |
+
|
158 |
+
$user = wp_get_current_user();
|
159 |
+
$user_id = get_current_user_id();
|
160 |
+
$user_name = $user->user_login;
|
161 |
+
$user_email = $user->user_email;
|
162 |
+
}
|
163 |
+
|
164 |
+
// If the current user has one of the user ids.
|
165 |
+
if ( $attr['user_id'] ) {
|
166 |
+
|
167 |
+
// Get the user IDs.
|
168 |
+
$ids = array_map( 'trim', explode( ',', $attr['user_id'] ) );
|
169 |
+
|
170 |
+
if ( '!' === $operator ) {
|
171 |
+
return in_array( $user_id, $ids ) ? '' : do_shortcode( $content );
|
172 |
+
}
|
173 |
+
|
174 |
+
return in_array( $user_id, $ids ) ? do_shortcode( $content ) : '';
|
175 |
+
}
|
176 |
+
|
177 |
+
// If the current user has one of the user names.
|
178 |
+
if ( $attr['user_name'] ) {
|
179 |
+
|
180 |
+
// Get the user names.
|
181 |
+
$names = array_map( 'trim', explode( ',', $attr['user_name'] ) );
|
182 |
+
|
183 |
+
if ( '!' === $operator ) {
|
184 |
+
return in_array( $user_name, $names ) ? '' : do_shortcode( $content );
|
185 |
+
}
|
186 |
+
|
187 |
+
return in_array( $user_name, $names ) ? do_shortcode( $content ) : '';
|
188 |
+
}
|
189 |
+
|
190 |
+
// If the current user has one of the user emails.
|
191 |
+
if ( $attr['user_email'] ) {
|
192 |
+
|
193 |
+
// Get the user emails.
|
194 |
+
$emails = array_map( 'trim', explode( ',', $attr['user_email'] ) );
|
195 |
+
|
196 |
+
if ( '!' === $operator ) {
|
197 |
+
return in_array( $user_email, $emails ) ? '' : do_shortcode( $content );
|
198 |
+
}
|
199 |
+
|
200 |
+
return in_array( $user_email, $emails ) ? do_shortcode( $content ) : '';
|
201 |
+
}
|
202 |
+
|
203 |
// Return an empty string if we've made it to this point.
|
204 |
return '';
|
205 |
}
|
inc/functions-users.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions-widgets.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/functions.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
inc/template.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 -
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
5 |
* @package Members
|
6 |
* @subpackage Includes
|
7 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
* @link https://themehybrid.com/plugins/members
|
10 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
members.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Members
|
4 |
* Plugin URI: https://themehybrid.com/plugins/members
|
5 |
* Description: A user and role management plugin that puts you in full control of your site's permissions. This plugin allows you to edit your roles and their capabilities, clone existing roles, assign multiple roles per user, block post content, or even make your site completely private.
|
6 |
-
* Version: 2.0
|
7 |
* Author: Justin Tadlock
|
8 |
* Author URI: https://themehybrid.com
|
9 |
* Text Domain: members
|
@@ -25,9 +25,9 @@
|
|
25 |
* write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 |
*
|
27 |
* @package Members
|
28 |
-
* @version 2.0
|
29 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
30 |
-
* @copyright Copyright (c) 2009 -
|
31 |
* @link https://themehybrid.com/plugins/members
|
32 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
33 |
*/
|
3 |
* Plugin Name: Members
|
4 |
* Plugin URI: https://themehybrid.com/plugins/members
|
5 |
* Description: A user and role management plugin that puts you in full control of your site's permissions. This plugin allows you to edit your roles and their capabilities, clone existing roles, assign multiple roles per user, block post content, or even make your site completely private.
|
6 |
+
* Version: 2.1.0
|
7 |
* Author: Justin Tadlock
|
8 |
* Author URI: https://themehybrid.com
|
9 |
* Text Domain: members
|
25 |
* write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 |
*
|
27 |
* @package Members
|
28 |
+
* @version 2.1.0
|
29 |
* @author Justin Tadlock <justintadlock@gmail.com>
|
30 |
+
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
31 |
* @link https://themehybrid.com/plugins/members
|
32 |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
33 |
*/
|
readme.md
CHANGED
@@ -23,7 +23,7 @@ If you need professional plugin support from me, the plugin author, you can acce
|
|
23 |
|
24 |
This project is licensed under the [GNU GPL](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html), version 2 or later.
|
25 |
|
26 |
-
2009 – 
|
27 |
|
28 |
## Documentation
|
29 |
|
@@ -99,6 +99,14 @@ The `[members_access]` shortcode is for hiding content from particular roles and
|
|
99 |
|
100 |
[members_access role="editor"]Hide this content from everyone but editors.[/members_access]
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
**Parameters:**
|
103 |
|
104 |
* `capability`: A capability that has been assigned to a role.
|
23 |
|
24 |
This project is licensed under the [GNU GPL](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html), version 2 or later.
|
25 |
|
26 |
+
2009 – 2018 © [Justin Tadlock](http://justintadlock.com).
|
27 |
|
28 |
## Documentation
|
29 |
|
99 |
|
100 |
[members_access role="editor"]Hide this content from everyone but editors.[/members_access]
|
101 |
|
102 |
+
The plugin accepts the following parameters (mixing and matching won't work):
|
103 |
+
|
104 |
+
* `role` - A single or comma-separated list of roles.
|
105 |
+
* `capability` - A single or comma-separated list of capabilities.
|
106 |
+
* `user_name` - A single or comma-separated list of usernames.
|
107 |
+
* `user_id` - A single or comma-separated list of user IDs.
|
108 |
+
* `user_email` - A single or comma-separated list of user email addresses.
|
109 |
+
|
110 |
**Parameters:**
|
111 |
|
112 |
* `capability`: A capability that has been assigned to a role.
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ Contributors: greenshady
|
|
4 |
Donate link: https://themehybrid.com/donate
|
5 |
Tags: capabilities, roles, members, users
|
6 |
Requires at least: 4.7
|
7 |
-
Tested up to: 4.
|
8 |
-
Requires PHP: 5.
|
9 |
-
Stable tag: 2.0
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -72,7 +72,9 @@ You can also [view the readme](https://github.com/justintadlock/members/blob/mas
|
|
72 |
|
73 |
### Minimum PHP requirements.
|
74 |
|
75 |
-
Since version 2.
|
|
|
|
|
76 |
|
77 |
### I can't access the "Role Manager" features.
|
78 |
|
4 |
Donate link: https://themehybrid.com/donate
|
5 |
Tags: capabilities, roles, members, users
|
6 |
Requires at least: 4.7
|
7 |
+
Tested up to: 4.9
|
8 |
+
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.1.0
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
72 |
|
73 |
### Minimum PHP requirements.
|
74 |
|
75 |
+
Since version 2.1.0 of Members, PHP 5.6+ is a soft requirement to use the plugin. The plugin will still work on PHP 5.3+, but it is not recommended.
|
76 |
+
|
77 |
+
When Members version 3.0.0 is released, PHP 5.6+ will be a hard requirement and won't work on older versions of PHP.
|
78 |
|
79 |
### I can't access the "Role Manager" features.
|
80 |
|