Version Description
- Added administrative links to the plugin entry.
Download this release
Release Info
Developer | itthinx |
Plugin | Groups |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- groups.php +2 -2
- lib/admin/class-groups-admin.php +24 -1
- readme.txt +6 -3
groups.php
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
* Plugin Name: Groups
|
22 |
* Plugin URI: http://www.itthinx.com/plugins/groups
|
23 |
* Description: Groups provides group-based user membership management, group-based capabilities and content access control.
|
24 |
-
* Version: 1.5.
|
25 |
* Author: itthinx
|
26 |
* Author URI: http://www.itthinx.com
|
27 |
* Donate-Link: http://www.itthinx.com
|
@@ -30,7 +30,7 @@
|
|
30 |
if ( !defined( 'ABSPATH' ) ) {
|
31 |
exit;
|
32 |
}
|
33 |
-
define( 'GROUPS_CORE_VERSION', '1.5.
|
34 |
define( 'GROUPS_FILE', __FILE__ );
|
35 |
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
|
36 |
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
21 |
* Plugin Name: Groups
|
22 |
* Plugin URI: http://www.itthinx.com/plugins/groups
|
23 |
* Description: Groups provides group-based user membership management, group-based capabilities and content access control.
|
24 |
+
* Version: 1.5.5
|
25 |
* Author: itthinx
|
26 |
* Author URI: http://www.itthinx.com
|
27 |
* Donate-Link: http://www.itthinx.com
|
30 |
if ( !defined( 'ABSPATH' ) ) {
|
31 |
exit;
|
32 |
}
|
33 |
+
define( 'GROUPS_CORE_VERSION', '1.5.5' );
|
34 |
define( 'GROUPS_FILE', __FILE__ );
|
35 |
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
|
36 |
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
lib/admin/class-groups-admin.php
CHANGED
@@ -42,6 +42,7 @@ class Groups_Admin {
|
|
42 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
43 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
44 |
add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) );
|
|
|
45 |
}
|
46 |
|
47 |
/**
|
@@ -217,8 +218,30 @@ class Groups_Admin {
|
|
217 |
$pages[] = $page;
|
218 |
add_action( 'admin_print_styles-' . $page, array( __CLASS__, 'admin_print_styles' ) );
|
219 |
add_action( 'admin_print_scripts-' . $page, array( __CLASS__, 'admin_print_scripts' ) );
|
220 |
-
|
221 |
do_action( 'groups_network_admin_menu', $pages );
|
222 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
Groups_Admin::init();
|
42 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
43 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
44 |
add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) );
|
45 |
+
add_filter( 'plugin_action_links_'. plugin_basename( GROUPS_FILE ), array( __CLASS__, 'plugin_action_links' ) );
|
46 |
}
|
47 |
|
48 |
/**
|
218 |
$pages[] = $page;
|
219 |
add_action( 'admin_print_styles-' . $page, array( __CLASS__, 'admin_print_styles' ) );
|
220 |
add_action( 'admin_print_scripts-' . $page, array( __CLASS__, 'admin_print_scripts' ) );
|
221 |
+
|
222 |
do_action( 'groups_network_admin_menu', $pages );
|
223 |
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Adds plugin links.
|
227 |
+
*
|
228 |
+
* @param array $links
|
229 |
+
* @param array $links with additional links
|
230 |
+
*/
|
231 |
+
public static function plugin_action_links( $links ) {
|
232 |
+
if ( current_user_can( GROUPS_ADMINISTER_OPTIONS ) ) {
|
233 |
+
array_unshift(
|
234 |
+
$links,
|
235 |
+
'<a href="' . get_admin_url( null, 'admin.php?page=groups-admin-options' ) . '">' . __( 'Options', GROUPS_PLUGIN_DOMAIN ) . '</a>'
|
236 |
+
);
|
237 |
+
}
|
238 |
+
if ( current_user_can( GROUPS_ADMINISTER_GROUPS ) ) {
|
239 |
+
array_unshift(
|
240 |
+
$links,
|
241 |
+
'<a href="' . get_admin_url( null, 'admin.php?page=groups-admin' ) . '">' . __( 'Groups', GROUPS_PLUGIN_DOMAIN ) . '</a>'
|
242 |
+
);
|
243 |
+
}
|
244 |
+
return $links;
|
245 |
+
}
|
246 |
}
|
247 |
Groups_Admin::init();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itthinx.com/plugins/groups
|
|
4 |
Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3
|
9 |
|
10 |
Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
|
@@ -179,6 +179,9 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
|
|
|
|
|
|
182 |
= 1.5.4 =
|
183 |
* Added the Dutch translation.
|
184 |
|
@@ -453,5 +456,5 @@ Some installations wouldn't work correctly, showing no capabilities and making i
|
|
453 |
|
454 |
== Upgrade Notice ==
|
455 |
|
456 |
-
= 1.5.
|
457 |
-
This release adds the
|
4 |
Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.5.5
|
8 |
License: GPLv3
|
9 |
|
10 |
Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= 1.5.5 =
|
183 |
+
* Added administrative links to the plugin entry.
|
184 |
+
|
185 |
= 1.5.4 =
|
186 |
* Added the Dutch translation.
|
187 |
|
456 |
|
457 |
== Upgrade Notice ==
|
458 |
|
459 |
+
= 1.5.5 =
|
460 |
+
This release adds administrative links to the plugin entry.
|