Skip to content

Commit d1d80ea

Browse files
authored
Merge pull request #167 from itthinx/tested-3.6.0-6.8
Tested 3.6.0 6.8
2 parents f49a2b6 + 88b5af5 commit d1d80ea

38 files changed

Lines changed: 454 additions & 136 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.svn
2+
.DS_Store

changelog.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
== Groups by itthinx - changelog.txt
22

3+
2025-08-20 - version 3.6.0
4+
* Update - WordPress 6.8 compatible.
5+
* Dev - Removed superfluous spaces in several translations.
6+
* Dev - Removed superfluous spaces in code and text.
7+
* Add - Added support for the class and submit_class shortcode parameters to the [groups_join] shortcode.
8+
* Add - Added support for the class and submit_class shortcode parameters to the [groups_leave] shortcode.
9+
* Fix - Fixed inappropriate class used for the container of the [groups_leave] shortcode.
10+
* Update - A successful submission via the [groups_join] shortcode will cause a redirect to the current page so that the membership change is reflected.
11+
* Add - Added the groups_join_submit_redirect filter.
12+
* Update - A successful submission via the [groups_leave] shortcode will cause a redirect to the current page so that the membership change is reflected.
13+
* Add - Added the groups_leave_submit_redirect filter.
14+
* Dev - Instances of using proper API methods instead of supermagic properties to obtain data.
15+
* Dev - Revised for PHPStan validation (rules via phpstan.neon).
16+
* Dev - Updated Groups_User to provide expected return type Groups_Capability[] instead of string[] when asking for capabilities_deep.
17+
* Dev - API improvement, added additional getters and setters to cache object, added key type checks.
18+
* Dev - Revised and fixed several code formatting issues.
19+
* Dev - Fixed instances of incorrect code documentation.
20+
* Dev - Revised code documentation format where improper.
21+
* Dev - Validation hints for verified property access (empty.variable).
22+
* Dev - Validation hints for verified property access (property.notFound).
23+
* Dev - Fixed potentially undefined variables.
24+
* Dev - Added missing code documentation.
25+
326
2025-04-20 - version 3.5.0
427
* Update - WordPress 6.8 compatible.
528
* Update - Requires at least WordPress 6.3.

groups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Plugin Name: Groups
2222
* Plugin URI: https://www.itthinx.com/plugins/groups
2323
* Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24-
* Version: 3.5.0
24+
* Version: 3.6.0
2525
* Requires at least: 6.3
2626
* Requires PHP: 7.4
2727
* WC requires at least: 8.2
@@ -36,7 +36,7 @@
3636
if ( !defined( 'ABSPATH' ) ) {
3737
exit;
3838
}
39-
define( 'GROUPS_CORE_VERSION', '3.5.0' );
39+
define( 'GROUPS_CORE_VERSION', '3.6.0' );
4040
define( 'GROUPS_FILE', __FILE__ );
4141
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
4242
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );

languages/groups-es.mo

-4 Bytes
Binary file not shown.

languages/groups-es.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgstr ""
55
"Project-Id-Version: Groups\n"
66
"Report-Msgid-Bugs-To: \n"
77
"POT-Creation-Date: 2025-01-22 19:31+0100\n"
8-
"PO-Revision-Date: 2025-01-22 19:34+0100\n"
8+
"PO-Revision-Date: 2025-08-20 20:14+0200\n"
99
"Last-Translator: Karim\n"
1010
"Language-Team: itthinx.com\n"
1111
"Language: es_ES\n"
@@ -870,10 +870,9 @@ msgid "Members of the %1$s group can access this %2$s through this capability."
870870
msgid_plural ""
871871
"Members of the %1$s groups can access this %2$s through this capability."
872872
msgstr[0] ""
873-
"Miembros del grupo %1$s pueden acceder a %2$s a través de esta capacidad."
873+
"Miembros del grupo %1$s pueden acceder a %2$s a través de esta capacidad."
874874
msgstr[1] ""
875-
"Miembros de los grupos %1$s pueden acceder a %2$s a través de esta "
876-
"capacidad."
875+
"Miembros de los grupos %1$s pueden acceder a %2$s a través de esta capacidad."
877876

878877
#: lib/admin/groups-admin-add-ons.php:152
879878
msgid "More recommended Extensions for Groups"
@@ -1267,12 +1266,12 @@ msgstr "Se ha actualizado la capacidad <em>%s</em>."
12671266
#, php-format
12681267
msgid ""
12691268
"The <em>%s</em> group already exists and cannot be used to name this one."
1270-
msgstr "El grupo <em>%s</em> ya existe y no se puede usar para nombrar éste."
1269+
msgstr "El grupo <em>%s</em> ya existe y no se puede usar para nombrar éste."
12711270

12721271
#: lib/admin/groups-admin-groups-add.php:174
12731272
#, php-format
12741273
msgid "The <em>%s</em> group already exists."
1275-
msgstr "El grupo <em>%s</em> ya existe."
1274+
msgstr "El grupo <em>%s</em> ya existe."
12761275

12771276
#: lib/admin/groups-admin-groups.php:65
12781277
#, php-format

languages/groups-lt_LT.mo

0 Bytes
Binary file not shown.

languages/groups-lt_LT.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgstr ""
55
"Project-Id-Version: Groups 1.0.0-beta-3c\n"
66
"Report-Msgid-Bugs-To: \n"
77
"POT-Creation-Date: 2025-01-22 19:31+0100\n"
8-
"PO-Revision-Date: 2025-01-22 19:42+0100\n"
8+
"PO-Revision-Date: 2025-08-20 20:15+0200\n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
1111
"Language: lt\n"
@@ -1550,9 +1550,9 @@ msgstr ""
15501550
#~ "<em>customization</em>, you may <a href=\"http://www.itthinx.com/\" "
15511551
#~ "target=\"_blank\">contact me here</a>."
15521552
#~ msgstr ""
1553-
#~ "Jeigu Jums reikia <em>konsultacinių paslaugų</em>, <em>pagalbos</em> "
1554-
#~ "arba <em>papildinio individualizacijos</em>, Jūs galite <a href=\"http://"
1555-
#~ "www.itthinx.com/\" target=\"_blank\">surasti mane čia</a>."
1553+
#~ "Jeigu Jums reikia <em>konsultacinių paslaugų</em>, <em>pagalbos</em> arba "
1554+
#~ "<em>papildinio individualizacijos</em>, Jūs galite <a href=\"http://www."
1555+
#~ "itthinx.com/\" target=\"_blank\">surasti mane čia</a>."
15561556

15571557
#~ msgid "If you find this plugin useful, please consider making a donation:"
15581558
#~ msgstr ""

languages/groups-sv_SE.mo

-4 Bytes
Binary file not shown.

languages/groups-sv_SE.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgstr ""
33
"Project-Id-Version: Groups\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2025-01-22 19:31+0100\n"
6-
"PO-Revision-Date: 2025-01-22 19:45+0100\n"
6+
"PO-Revision-Date: 2025-08-20 20:15+0200\n"
77
"Last-Translator: Andréas Lundgren <adevade@gmail.com>\n"
88
"Language-Team: 035 Media Group <info@035media.se>\n"
99
"Language: sv_SE\n"
@@ -535,7 +535,7 @@ msgstr ""
535535
msgid ""
536536
"Go to <strong>Groups > Groups</strong> and add the <em>Premium</em> group."
537537
msgstr ""
538-
"Gå till <strong>Grupper > Grupper</strong> och lägg till gruppen "
538+
"Gå till <strong>Grupper > Grupper</strong> och lägg till gruppen "
539539
"<em>Premium</em>."
540540

541541
#: legacy/access/class-groups-access-meta-boxes-legacy.php:158
@@ -551,7 +551,7 @@ msgid ""
551551
"Go to <strong>Groups > Options</strong> and enable the <em>premium</em> "
552552
"capability to restrict access."
553553
msgstr ""
554-
"Gå till <strong>Grupper > Inställningar</strong> och aktivera förmågan "
554+
"Gå till <strong>Grupper > Inställningar</strong> och aktivera förmågan "
555555
"<em>premium</em> för att begränsa tillträde."
556556

557557
#: lib/core/class-groups-pagination.php:136
@@ -716,7 +716,7 @@ msgid ""
716716
"Here you can <strong>add</strong>, <strong>edit</strong> and <strong>remove</"
717717
"strong> groups."
718718
msgstr ""
719-
"Här kan du <strong>lägga till</strong>, <strong>redigera</strong> och "
719+
"Här kan du <strong>lägga till</strong>, <strong>redigera</strong> och "
720720
"<strong>radera</strong> grupper."
721721

722722
#: lib/blocks/src/blocks/groups-non-member/block.js:73
@@ -1301,7 +1301,7 @@ msgstr "Det finns inga resultat."
13011301

13021302
#: lib/admin/groups-admin-groups-add.php:115
13031303
msgid "These capabilities will be assigned to the group."
1304-
msgstr "Dessa förmågor kommer att tilldelas gruppen."
1304+
msgstr "Dessa förmågor kommer att tilldelas gruppen."
13051305

13061306
#: lib/admin/groups-admin-options.php:297
13071307
msgid ""

legacy/access/class-groups-access-meta-boxes-legacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public static function save_post( $post_id = null, $post = null ) {
388388
// when trying to merge the missing property otherwise. It's either a
389389
// bug or the function's documentation should make it clear that you
390390
// have to provide that.
391-
$post_type_object->capabilities = array();
391+
$post_type_object->capabilities = array(); // @phpstan-ignore property.notFound
392392
}
393393
$caps_object = get_post_type_capabilities( $post_type_object );
394394
if ( isset( $caps_object->edit_post ) ) {

0 commit comments

Comments
 (0)