Groups - Version 2.16.0

Version Description

Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 2.16.0
Comparing to
See all releases

Code changes from version 2.15.0 to 2.16.0

COPYRIGHT.txt CHANGED
@@ -1,7 +1,7 @@
1
 
2
  Groups
3
 
4
- Copyright 2011-2021 "kento" (Karim Rahimpur) www.itthinx.com
5
 
6
  The files COPYRIGHT.txt and LICENSE.txt as well as ALL NOTICES IN THE
7
  HEADERS OF ALL FILES MUST BE KEPT INTACT.
1
 
2
  Groups
3
 
4
+ Copyright 2011-2022 "kento" (Karim Rahimpur) www.itthinx.com
5
 
6
  The files COPYRIGHT.txt and LICENSE.txt as well as ALL NOTICES IN THE
7
  HEADERS OF ALL FILES MUST BE KEPT INTACT.
changelog.txt CHANGED
@@ -1,5 +1,13 @@
1
  == Groups by itthinx - changelog.txt
2
 
 
 
 
 
 
 
 
 
3
  = 2.15.0 =
4
  * WordPress 5.9 compatible.
5
  * Revised block titles and removed redundant "Block" part.
1
  == Groups by itthinx - changelog.txt
2
 
3
+ = 2.16.0 =
4
+ * WordPress 6.0 compatible.
5
+ * Fixed slashes appearing in term-related group names in the Groups column of the administrative screens for posts.
6
+ * Updated Groups menu position to straight integer for WordPress 6.x compatibility.
7
+ * Fixed use of undefined variable in legacy code.
8
+ * Add-Ons section updated.
9
+ * Revised Groups' menu icon.
10
+
11
  = 2.15.0 =
12
  * WordPress 5.9 compatible.
13
  * Revised block titles and removed redundant "Block" part.
css/groups-menu.css ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * groups-menu.css
3
+ *
4
+ * Copyright (c) "kento" Karim Rahimpur www.itthinx.com
5
+ *
6
+ * This code is released under the GNU General Public License.
7
+ * See COPYRIGHT.txt and LICENSE.txt.
8
+ *
9
+ * This code is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * This header and all notices must be kept intact.
15
+ *
16
+ * @author Karim Rahimpur
17
+ * @package groups
18
+ * @since groups 2.16.0
19
+ */
20
+ li#toplevel_page_groups-admin .wp-menu-image,
21
+ li#toplevel_page_groups-network-admin .wp-menu-image {
22
+ background-image: url( ../images/groups.svg );
23
+ background-position: center center;
24
+ background-repeat: no-repeat;
25
+ }
26
+ body.admin-color-blue li#toplevel_page_groups-admin .wp-menu-image,
27
+ body.admin-color-blue li#toplevel_page_groups-network-admin .wp-menu-image {
28
+ background-image: url( ../images/groups-dark.svg );
29
+ }
30
+ body.admin-color-blue li.wp-has-current-submenu#toplevel_page_groups-admin .wp-menu-image,
31
+ body.admin-color-blue li.wp-has-current-submenu#toplevel_page_groups-network-admin .wp-menu-image {
32
+ background-image: url( ../images/groups.svg );
33
+ }
34
+ body.admin-color-ocean li#toplevel_page_groups-admin .wp-menu-image,
35
+ body.admin-color-ocean li#toplevel_page_groups-network-admin .wp-menu-image {
36
+ background-image: url( ../images/groups-light.svg );
37
+ }
38
+ body.admin-color-ocean li.wp-has-current-submenu#toplevel_page_groups-admin .wp-menu-image,
39
+ body.admin-color-ocean li.wp-has-current-submenu#toplevel_page_groups-network-admin .wp-menu-image {
40
+ background-image: url( ../images/groups.svg );
41
+ }
42
+ body.admin-color-sunrise li#toplevel_page_groups-admin .wp-menu-image,
43
+ body.admin-color-sunrise li#toplevel_page_groups-network-admin .wp-menu-image {
44
+ background-image: url( ../images/groups-light.svg );
45
+ }
46
+ body.admin-color-sunrise li.wp-has-current-submenu#toplevel_page_groups-admin .wp-menu-image,
47
+ body.admin-color-sunrise li.wp-has-current-submenu#toplevel_page_groups-network-admin .wp-menu-image {
48
+ background-image: url( ../images/groups.svg );
49
+ }
50
+ body.admin-color-light li.wp-has-current-submenu#toplevel_page_groups-admin .wp-menu-image,
51
+ body.admin-color-light li.wp-has-current-submenu#toplevel_page_groups-network-admin .wp-menu-image {
52
+ background-image: url( ../images/groups-light.svg );
53
+ }
54
+ body.admin-color-midnight li.wp-has-current-submenu#toplevel_page_groups-admin .wp-menu-image,
55
+ body.admin-color-midnight li.wp-has-current-submenu#toplevel_page_groups-network-admin .wp-menu-image {
56
+ background-image: url( ../images/groups-dark.svg );
57
+ }
groups.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * groups.php
4
  *
5
- * Copyright (c) 2011-2021 "kento" Karim Rahimpur www.itthinx.com
6
  *
7
  * This code is released under the GNU General Public License.
8
  * See COPYRIGHT.txt and LICENSE.txt.
@@ -21,7 +21,7 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: https://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
- * Version: 2.15.0
25
  * Author: itthinx
26
  * Author URI: https://www.itthinx.com
27
  * Donate-Link: https://www.itthinx.com/shop/
@@ -32,7 +32,7 @@
32
  if ( !defined( 'ABSPATH' ) ) {
33
  exit;
34
  }
35
- define( 'GROUPS_CORE_VERSION', '2.15.0' );
36
  define( 'GROUPS_FILE', __FILE__ );
37
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
38
  define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
2
  /**
3
  * groups.php
4
  *
5
+ * Copyright (c) 2011-2022 "kento" Karim Rahimpur www.itthinx.com
6
  *
7
  * This code is released under the GNU General Public License.
8
  * See COPYRIGHT.txt and LICENSE.txt.
21
  * Plugin Name: Groups
22
  * Plugin URI: https://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
+ * Version: 2.16.0
25
  * Author: itthinx
26
  * Author URI: https://www.itthinx.com
27
  * Donate-Link: https://www.itthinx.com/shop/
32
  if ( !defined( 'ABSPATH' ) ) {
33
  exit;
34
  }
35
+ define( 'GROUPS_CORE_VERSION', '2.16.0' );
36
  define( 'GROUPS_FILE', __FILE__ );
37
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
38
  define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
images/add-ons/woocommerce-volume-discount-coupons.png ADDED
Binary file
images/groups-dark.svg ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <svg width="20" height="20" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg">
2
+ <g transform="translate(0 447.64)">
3
+ <path d="m65.245-411.65a0.68257 0.68257 0 0 1-0.68256 0.68257 0.68257 0.68257 0 0 1-0.68257-0.68257 0.68257 0.68257 0 0 1 0.68257-0.68257 0.68257 0.68257 0 0 1 0.68256 0.68257zm-45.815-15.135a1.0239 1.0239 0 0 1-1.0239 1.0239 1.0239 1.0239 0 0 1-1.0239-1.0239 1.0239 1.0239 0 0 1 1.0239-1.0238 1.0239 1.0239 0 0 1 1.0239 1.0238zm34.393-4.467a1.7064 1.7064 0 0 1-1.7064 1.7064 1.7064 1.7064 0 0 1-1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064 1.7064zm161.01 194.03a2.7303 2.7303 0 0 1-2.7303 2.7303 2.7303 2.7303 0 0 1-2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303 2.7303zm-160.76-147.3a4.4367 4.4367 0 0 1-4.4367 4.4367 4.4367 4.4367 0 0 1-4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367 4.4367zm121.87 55.979a7.167 7.167 0 0 1-7.167 7.167 7.167 7.167 0 0 1-7.167-7.167 7.167 7.167 0 0 1 7.167-7.167 7.167 7.167 0 0 1 7.167 7.167zm47.219 38.46a11.518 11.518 0 0 1-11.518 11.518 11.518 11.518 0 0 1-11.518-11.518 11.518 11.518 0 0 1 11.518-11.518 11.518 11.518 0 0 1 11.518 11.518zm-84.526-108.72a30.204 30.204 0 0 1-30.204 30.204 30.204 30.204 0 0 1-30.204-30.204 30.204 30.204 0 0 1 30.204-30.204 30.204 30.204 0 0 1 30.204 30.204zm104.87 12.55a48.889 48.889 0 0 1-48.889 48.889 48.889 48.889 0 0 1-48.889-48.889 48.889 48.889 0 0 1 48.889-48.889 48.889 48.889 0 0 1 48.889 48.889zm-72.815 103.02a79.093 79.093 0 0 1-79.093 79.093 79.093 79.093 0 0 1-79.093-79.093 79.093 79.093 0 0 1 79.093-79.093 79.093 79.093 0 0 1 79.093 79.093z" color="#475a80" fill="#475a80" stroke-width=".0016893"/>
4
+ </g>
5
+ </svg>
images/groups-light.svg ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <svg width="20" height="20" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg">
2
+ <g transform="translate(0 447.64)">
3
+ <path d="m65.245-411.65a0.68257 0.68257 0 0 1-0.68256 0.68257 0.68257 0.68257 0 0 1-0.68257-0.68257 0.68257 0.68257 0 0 1 0.68257-0.68257 0.68257 0.68257 0 0 1 0.68256 0.68257zm-45.815-15.135a1.0239 1.0239 0 0 1-1.0239 1.0239 1.0239 1.0239 0 0 1-1.0239-1.0239 1.0239 1.0239 0 0 1 1.0239-1.0238 1.0239 1.0239 0 0 1 1.0239 1.0238zm34.393-4.467a1.7064 1.7064 0 0 1-1.7064 1.7064 1.7064 1.7064 0 0 1-1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064 1.7064zm161.01 194.03a2.7303 2.7303 0 0 1-2.7303 2.7303 2.7303 2.7303 0 0 1-2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303 2.7303zm-160.76-147.3a4.4367 4.4367 0 0 1-4.4367 4.4367 4.4367 4.4367 0 0 1-4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367 4.4367zm121.87 55.979a7.167 7.167 0 0 1-7.167 7.167 7.167 7.167 0 0 1-7.167-7.167 7.167 7.167 0 0 1 7.167-7.167 7.167 7.167 0 0 1 7.167 7.167zm47.219 38.46a11.518 11.518 0 0 1-11.518 11.518 11.518 11.518 0 0 1-11.518-11.518 11.518 11.518 0 0 1 11.518-11.518 11.518 11.518 0 0 1 11.518 11.518zm-84.526-108.72a30.204 30.204 0 0 1-30.204 30.204 30.204 30.204 0 0 1-30.204-30.204 30.204 30.204 0 0 1 30.204-30.204 30.204 30.204 0 0 1 30.204 30.204zm104.87 12.55a48.889 48.889 0 0 1-48.889 48.889 48.889 48.889 0 0 1-48.889-48.889 48.889 48.889 0 0 1 48.889-48.889 48.889 48.889 0 0 1 48.889 48.889zm-72.815 103.02a79.093 79.093 0 0 1-79.093 79.093 79.093 79.093 0 0 1-79.093-79.093 79.093 79.093 0 0 1 79.093-79.093 79.093 79.093 0 0 1 79.093 79.093z" color="#85a9f0" fill="#85a9f0" stroke-width=".0016893"/>
4
+ </g>
5
+ </svg>
images/groups.svg ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <svg width="20" height="20" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg">
2
+ <g transform="translate(0 447.64)">
3
+ <path d="m65.245-411.65a0.68257 0.68257 0 0 1-0.68256 0.68257 0.68257 0.68257 0 0 1-0.68257-0.68257 0.68257 0.68257 0 0 1 0.68257-0.68257 0.68257 0.68257 0 0 1 0.68256 0.68257zm-45.815-15.135a1.0239 1.0239 0 0 1-1.0239 1.0239 1.0239 1.0239 0 0 1-1.0239-1.0239 1.0239 1.0239 0 0 1 1.0239-1.0238 1.0239 1.0239 0 0 1 1.0239 1.0238zm34.393-4.467a1.7064 1.7064 0 0 1-1.7064 1.7064 1.7064 1.7064 0 0 1-1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064-1.7064 1.7064 1.7064 0 0 1 1.7064 1.7064zm161.01 194.03a2.7303 2.7303 0 0 1-2.7303 2.7303 2.7303 2.7303 0 0 1-2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303-2.7303 2.7303 2.7303 0 0 1 2.7303 2.7303zm-160.76-147.3a4.4367 4.4367 0 0 1-4.4367 4.4367 4.4367 4.4367 0 0 1-4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367-4.4367 4.4367 4.4367 0 0 1 4.4367 4.4367zm121.87 55.979a7.167 7.167 0 0 1-7.167 7.167 7.167 7.167 0 0 1-7.167-7.167 7.167 7.167 0 0 1 7.167-7.167 7.167 7.167 0 0 1 7.167 7.167zm47.219 38.46a11.518 11.518 0 0 1-11.518 11.518 11.518 11.518 0 0 1-11.518-11.518 11.518 11.518 0 0 1 11.518-11.518 11.518 11.518 0 0 1 11.518 11.518zm-84.526-108.72a30.204 30.204 0 0 1-30.204 30.204 30.204 30.204 0 0 1-30.204-30.204 30.204 30.204 0 0 1 30.204-30.204 30.204 30.204 0 0 1 30.204 30.204zm104.87 12.55a48.889 48.889 0 0 1-48.889 48.889 48.889 48.889 0 0 1-48.889-48.889 48.889 48.889 0 0 1 48.889-48.889 48.889 48.889 0 0 1 48.889 48.889zm-72.815 103.02a79.093 79.093 0 0 1-79.093 79.093 79.093 79.093 0 0 1-79.093-79.093 79.093 79.093 0 0 1 79.093-79.093 79.093 79.093 0 0 1 79.093 79.093z" color="#7392cf" fill="#7392cf" stroke-width=".0016893"/>
4
+ </g>
5
+ </svg>
legacy/access/class-groups-post-access-legacy.php CHANGED
@@ -109,7 +109,7 @@ class Groups_Post_Access_Legacy {
109
  if ( is_numeric( $args[0] ) ) {
110
  $post_id = $args[0];
111
  } else if ( $args[0] instanceof WP_Post ) {
112
- $post_id = $post->ID;
113
  }
114
  if ( $post_id ) {
115
  if ( !self::user_can_read_post( $post_id, $user_id ) ) {
109
  if ( is_numeric( $args[0] ) ) {
110
  $post_id = $args[0];
111
  } else if ( $args[0] instanceof WP_Post ) {
112
+ $post_id = $args[0]->ID;
113
  }
114
  if ( $post_id ) {
115
  if ( !self::user_can_read_post( $post_id, $user_id ) ) {
lib/admin/class-groups-admin-post-columns.php CHANGED
@@ -152,7 +152,7 @@ class Groups_Admin_Post_Columns {
152
  if ( $group = Groups_Group::read( $group_id ) ) {
153
  $entries[] = sprintf(
154
  '%s <a href="%s" title="%s" style="cursor: help">%s</a>',
155
- esc_html( $group->name ),
156
  esc_url( $edit_term_link ),
157
  esc_attr( $term_taxonomy_title),
158
  esc_html( $term->name )
152
  if ( $group = Groups_Group::read( $group_id ) ) {
153
  $entries[] = sprintf(
154
  '%s <a href="%s" title="%s" style="cursor: help">%s</a>',
155
+ stripslashes( wp_strip_all_tags( $group->name ) ),
156
  esc_url( $edit_term_link ),
157
  esc_attr( $term_taxonomy_title),
158
  esc_html( $term->name )
lib/admin/class-groups-admin.php CHANGED
@@ -33,7 +33,7 @@ class Groups_Admin {
33
  *
34
  * @var int
35
  */
36
- const MENU_POSITION = '38.381';
37
 
38
  /**
39
  * Holds admin messages.
@@ -161,7 +161,7 @@ class Groups_Admin {
161
  GROUPS_ADMINISTER_GROUPS,
162
  'groups-admin',
163
  apply_filters( 'groups_add_menu_page_function', 'groups_admin_groups' ),
164
- GROUPS_PLUGIN_URL . '/images/groups.png',
165
  self::MENU_POSITION
166
  );
167
  $pages[] = $page;
@@ -247,7 +247,7 @@ class Groups_Admin {
247
  GROUPS_ADMINISTER_GROUPS,
248
  'groups-network-admin',
249
  apply_filters( 'groups_add_menu_page_function', 'groups_network_admin_options' ),
250
- GROUPS_PLUGIN_URL . '/images/groups.png'
251
  );
252
  $pages[] = $page;
253
  add_action( 'admin_print_styles-' . $page, array( __CLASS__, 'admin_print_styles' ) );
33
  *
34
  * @var int
35
  */
36
+ const MENU_POSITION = 38;
37
 
38
  /**
39
  * Holds admin messages.
161
  GROUPS_ADMINISTER_GROUPS,
162
  'groups-admin',
163
  apply_filters( 'groups_add_menu_page_function', 'groups_admin_groups' ),
164
+ 'none', // @since 2.16.0 CSS icon from SVG
165
  self::MENU_POSITION
166
  );
167
  $pages[] = $page;
247
  GROUPS_ADMINISTER_GROUPS,
248
  'groups-network-admin',
249
  apply_filters( 'groups_add_menu_page_function', 'groups_network_admin_options' ),
250
+ 'none', // @since 2.16.0 CSS icon from SVG
251
  );
252
  $pages[] = $page;
253
  add_action( 'admin_print_styles-' . $page, array( __CLASS__, 'admin_print_styles' ) );
lib/admin/groups-admin-add-ons.php CHANGED
@@ -170,21 +170,21 @@ function groups_admin_add_ons_content( $params = array( 'offset' => 0 ) ) {
170
  'content' => 'Boost Sales with Affiliate Marketing for your WordPress site.',
171
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/affiliates-pro.png',
172
  'url' => 'https://www.itthinx.com/shop/affiliates-pro/',
173
- 'index' => 30
174
  ),
175
  'affiliates-enterprise' => array(
176
  'title' => 'Affiliates Enterprise',
177
  'content' => 'Affiliates Enterprise provides an affiliate management system for sellers, shops and developers, who want to boost sales with their own affiliate program. Features affiliate campaigns, tracking pixels and multiple tiers.',
178
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/affiliates-enterprise.png',
179
  'url' => 'https://www.itthinx.com/shop/affiliates-enterprise/',
180
- 'index' => 40
181
  ),
182
  'itthinx-mail-queue' => array(
183
  'title' => 'Itthinx Mail Queue',
184
  'content' => 'Features a fully automated SMTP email queue that substantially improves the way emails are sent out from your site. Prioritize sending by origin, eliminate delays for your visitors and balance your resources.',
185
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/itthinx-mail-queue.png',
186
  'url' => 'https://www.itthinx.com/shop/itthinx-mail-queue/',
187
- 'index' => 50
188
  ),
189
  'woocommerce-product-search' => array(
190
  'title' => 'WooCommerce Product Search',
@@ -200,6 +200,13 @@ function groups_admin_add_ons_content( $params = array( 'offset' => 0 ) ) {
200
  'url' => 'https://www.itthinx.com/shop/woocommerce-sales-analysis/',
201
  'index' => 20
202
  ),
 
 
 
 
 
 
 
203
  );
204
  usort( $entries, 'groups_admin_add_ons_sort' );
205
 
170
  'content' => 'Boost Sales with Affiliate Marketing for your WordPress site.',
171
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/affiliates-pro.png',
172
  'url' => 'https://www.itthinx.com/shop/affiliates-pro/',
173
+ 'index' => 40
174
  ),
175
  'affiliates-enterprise' => array(
176
  'title' => 'Affiliates Enterprise',
177
  'content' => 'Affiliates Enterprise provides an affiliate management system for sellers, shops and developers, who want to boost sales with their own affiliate program. Features affiliate campaigns, tracking pixels and multiple tiers.',
178
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/affiliates-enterprise.png',
179
  'url' => 'https://www.itthinx.com/shop/affiliates-enterprise/',
180
+ 'index' => 50
181
  ),
182
  'itthinx-mail-queue' => array(
183
  'title' => 'Itthinx Mail Queue',
184
  'content' => 'Features a fully automated SMTP email queue that substantially improves the way emails are sent out from your site. Prioritize sending by origin, eliminate delays for your visitors and balance your resources.',
185
  'image' => GROUPS_PLUGIN_URL . 'images/add-ons/itthinx-mail-queue.png',
186
  'url' => 'https://www.itthinx.com/shop/itthinx-mail-queue/',
187
+ 'index' => 60
188
  ),
189
  'woocommerce-product-search' => array(
190
  'title' => 'WooCommerce Product Search',
200
  'url' => 'https://www.itthinx.com/shop/woocommerce-sales-analysis/',
201
  'index' => 20
202
  ),
203
+ 'woocommerce-volume-discount-coupons' => array(
204
+ 'title' => 'Volume Discount Coupons for WooCommerce',
205
+ 'content' => 'Increase your sales by giving customers coupons and automatic discounts based on the quantities purchased.',
206
+ 'image' => GROUPS_PLUGIN_URL . 'images/add-ons/woocommerce-volume-discount-coupons.png',
207
+ 'url' => 'https://www.itthinx.com/shop/woocommerce-volume-discount-coupons/',
208
+ 'index' => 30
209
+ )
210
  );
211
  usort( $entries, 'groups_admin_add_ons_sort' );
212
 
lib/core/class-groups-controller.php CHANGED
@@ -86,6 +86,8 @@ class Groups_Controller {
86
  // wpmu_new_blog kicks in
87
  add_action( 'wpmu_new_blog', array( __CLASS__, 'wpmu_new_blog' ), 9, 2 );
88
  add_action( 'delete_blog', array( __CLASS__, 'delete_blog' ), 10, 2 );
 
 
89
  }
90
 
91
  /**
@@ -147,6 +149,27 @@ class Groups_Controller {
147
  }
148
  }
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  /**
151
  * Builds the mofile string for our own translations.
152
  * @return string mofile
86
  // wpmu_new_blog kicks in
87
  add_action( 'wpmu_new_blog', array( __CLASS__, 'wpmu_new_blog' ), 9, 2 );
88
  add_action( 'delete_blog', array( __CLASS__, 'delete_blog' ), 10, 2 );
89
+ add_action( 'wp_loaded', array( __CLASS__, 'wp_loaded' ) ); // @since 2.16.0
90
+ add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_enqueue_scripts' ) ); // @since 2.16.0
91
  }
92
 
93
  /**
149
  }
150
  }
151
 
152
+ /**
153
+ * Register the menu style.
154
+ *
155
+ * @since 2.16.0
156
+ */
157
+ public static function wp_loaded() {
158
+ global $groups_version;
159
+ if ( !wp_style_is( 'groups-menu', 'registered' ) ) {
160
+ wp_register_style( 'groups-menu', GROUPS_PLUGIN_URL . 'css/groups-menu.css', array(), $groups_version );
161
+ }
162
+ }
163
+
164
+ /**
165
+ * Enqueue the menu style.
166
+ *
167
+ * @since 2.16.0
168
+ */
169
+ public static function admin_enqueue_scripts() {
170
+ wp_enqueue_style( 'groups-menu' );
171
+ }
172
+
173
  /**
174
  * Builds the mofile string for our own translations.
175
  * @return string mofile
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: itthinx, proaktion
3
  Donate link: https://www.itthinx.com/shop/
4
  Tags: groups, access, access control, membership, memberships, member, members, capability, capabilities, content, download, downloads, file, file access, files, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 5.5
6
- Tested up to: 5.9
7
  Requires PHP: 5.6.0
8
- Stable tag: 2.15.0
9
  License: GPLv3
10
 
11
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
3
  Donate link: https://www.itthinx.com/shop/
4
  Tags: groups, access, access control, membership, memberships, member, members, capability, capabilities, content, download, downloads, file, file access, files, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 5.5
6
+ Tested up to: 6.0
7
  Requires PHP: 5.6.0
8
+ Stable tag: 2.16.0
9
  License: GPLv3
10
 
11
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.