Skip to content

Commit

Permalink
Merge pull request #80 from itthinx/pre-2.3.0
Browse files Browse the repository at this point in the history
Pre 2.3.0
  • Loading branch information
itthinx authored Jul 4, 2017
2 parents 0756d29 + 92eedda commit e002a54
Show file tree
Hide file tree
Showing 9 changed files with 365 additions and 100 deletions.
13 changes: 13 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
== Groups by itthinx - changelog.txt ==

= 2.3.0 =
* Tested with WordPress 4.8.
* Fixed a REST API access restriction issue, added the filter rest_prepare_{$post_type} to
grant or deny access to individual posts.
* Updated the translation template.
* German translation updated.
* Updated the appearance of the network settings.
* Updated the table creation process dropping use of dbDelta() due to its restrictions (can't handle IF NOT EXISTS).
* Fixed an issue related to cache and switching to a blog when neither wp_cache_switch_to_blog() nor wp_cache_reset()
are implemented, like in WP Engine's object-cache.php which does provide wp_cache_flush().
* Guarded against concurrent execution of multiple instances of plugin activation and deactivation processes.
* Fixed an attempt to refresh capabilities when no previous version was installed.

= 2.2.0 =
* Important change in this version: If access restrictions for post type are disabled, related entries will not be protected anymore.
* Improved the activation performance by simplifying the creation of user-group entries.
Expand Down
4 changes: 2 additions & 2 deletions groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Plugin Name: Groups
* Plugin URI: http://www.itthinx.com/plugins/groups
* Description: Groups provides group-based user membership management, group-based capabilities and content access control.
* Version: 2.2.0
* Version: 2.3.0
* Author: itthinx
* Author URI: http://www.itthinx.com
* Donate-Link: http://www.itthinx.com
Expand All @@ -32,7 +32,7 @@
if ( !defined( 'ABSPATH' ) ) {
exit;
}
define( 'GROUPS_CORE_VERSION', '2.2.0' );
define( 'GROUPS_CORE_VERSION', '2.3.0' );
define( 'GROUPS_FILE', __FILE__ );
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
Expand Down
Binary file modified languages/groups-de_DE.mo
Binary file not shown.
59 changes: 48 additions & 11 deletions languages/groups-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-13 17:14+0200\n"
"PO-Revision-Date: 2017-05-13 17:22+0200\n"
"POT-Creation-Date: 2017-06-28 12:56+0200\n"
"PO-Revision-Date: 2017-06-28 13:03+0200\n"
"Last-Translator: Karim\n"
"Language-Team: itthinx.com\n"
"Language: de_DE\n"
Expand All @@ -34,7 +34,7 @@ msgstr "— Ohne Änderung —"
msgid "(only unrestricted)"
msgstr "(ohne Beschränkung)"

#: lib/admin/class-groups-admin-users.php:374
#: lib/admin/class-groups-admin-users.php:378
msgid "--"
msgstr "--"

Expand Down Expand Up @@ -389,6 +389,13 @@ msgstr ""
"Klicken zum Umschalten, ob gewährende Gruppen zu den Kapazitäten angezeigt "
"werden."

#: lib/admin/class-groups-admin-notice.php:102
msgid ""
"Could you please spare a minute and give it a review over at WordPress.org?"
msgstr ""
"Könnten Sie bitte eine Minute freimachen und eine Rezension auf WordPress."
"org abgeben?"

#: lib/admin/groups-admin-options.php:286
msgid "Deactivation and data persistence"
msgstr "Deaktivierung und Datenpersistenz"
Expand Down Expand Up @@ -453,7 +460,7 @@ msgstr "Legacy Zugriffsbeschränkungen basierend auf Kapazitäten aktivieren."

#: lib/admin/groups-admin-options.php:207
msgid "Enabling this on production sites is <strong>not</strong> recommended."
msgstr ""
msgstr "Es wird empfohlen dies nicht auf öffentlichen Seiten zu aktivieren."

#: legacy/access/class-groups-access-meta-boxes-legacy.php:204
#: legacy/access/class-groups-access-meta-boxes-legacy.php:505
Expand Down Expand Up @@ -482,7 +489,7 @@ msgstr ""
msgid "Example:"
msgstr "Beispiel:"

#: lib/admin/class-groups-admin-users.php:275
#: lib/admin/class-groups-admin-users.php:279
msgid "Filter"
msgstr "Filtern"

Expand Down Expand Up @@ -550,14 +557,14 @@ msgstr "Gruppenname : %s"
#: lib/admin/class-groups-admin-user-profile.php:72
#: lib/admin/class-groups-admin-user-profile.php:135
#: lib/admin/class-groups-admin-user-profile.php:159
#: lib/admin/class-groups-admin-users.php:347
#: lib/admin/class-groups-admin-users.php:351
#: lib/admin/class-groups-admin.php:245 lib/admin/class-groups-admin.php:246
#: lib/admin/class-groups-admin.php:275 lib/core/class-groups-help.php:63
#: lib/core/class-groups-help.php:68 lib/core/class-groups-help.php:69
msgid "Groups"
msgstr "Groups"

#: lib/admin/class-groups-admin-post-columns.php:93
#: lib/admin/class-groups-admin-post-columns.php:96
msgctxt "Column header"
msgid "Groups"
msgstr "Gruppen"
Expand Down Expand Up @@ -623,6 +630,10 @@ msgstr ""
"Hier können Sie Gruppen <strong>hinzufügen</strong>, <strong>bearbeiten</"
"strong> und <strong>löschen</strong>."

#: lib/admin/class-groups-admin-notice.php:114
msgid "I have already done that."
msgstr "Das habe ich bereits getan."

#: lib/admin/groups-admin-capabilities.php:313
#: lib/admin/groups-admin-groups.php:303
msgid "ID"
Expand Down Expand Up @@ -688,6 +699,10 @@ msgstr ""
msgid "Inherited capabilities:"
msgstr "Geerbte Kapazitäten:"

#: lib/access/class-groups-post-access.php:150
msgid "Invalid post ID."
msgstr "Ungültige Beitrags-ID."

#: lib/admin/class-groups-admin-welcome.php:158
msgid ""
"It seems that you have updated from Groups 1.x where access restrictions "
Expand Down Expand Up @@ -723,6 +738,10 @@ msgstr ""
msgid "Log out"
msgstr "Abmelden"

#: lib/admin/class-groups-admin-notice.php:100
msgid "Many thanks for using <strong>Groups</strong>!"
msgstr "Vielen Dank das Sie <strong>Groups</strong> verwenden!"

#: legacy/access/class-groups-access-meta-boxes-legacy.php:503
#: lib/access/class-groups-access-meta-boxes.php:411
msgid "Media"
Expand Down Expand Up @@ -845,7 +864,7 @@ msgstr[1] "%d Kapazitäten wurden hinzugefügt."
msgid "One or more capabilities required to read the entry."
msgstr "Eine oder mehr Kapazitäten sind benötigt um den Beitrag zu lesen."

#: lib/admin/class-groups-admin-post-columns.php:92
#: lib/admin/class-groups-admin-post-columns.php:95
msgid "One or more groups granting access to entries."
msgstr "Eine oder mehr Gruppen die Zugriff auf Einträge erstatten."

Expand Down Expand Up @@ -1255,7 +1274,7 @@ msgstr ""
"Dies bedeutet dass vorige Zugangsbeschränkungen die auf Kapazitäten basieren "
"immer noch die Einträge schützen."

#: lib/access/class-groups-post-access.php:508
#: lib/access/class-groups-post-access.php:584
msgid ""
"This method is deprecated. You should use Groups_Post_Access_Legacy::"
"get_read_post_capabilities() to retrieve the capabilities instead."
Expand All @@ -1268,6 +1287,9 @@ msgid ""
"To disable, do not define the constant <code>GROUPS_ADMINISTRATOR_OVERRIDE</"
"code> or set it to <code>false</code>."
msgstr ""
"Um dies zu deaktivieren, sollte die Konstante "
"<code>GROUPS_ADMINISTRATOR_OVERRIDE</code> nicht definiert werden oder auf "
"<code>false</code> gesetzt werden."

#: lib/admin/class-groups-admin-welcome.php:206
msgid ""
Expand Down Expand Up @@ -1364,7 +1386,7 @@ msgstr "Den Begrüßungsbildschirm für diese Version von Groups anzeigen"

#: lib/admin/class-groups-admin.php:302
msgid "Warning!"
msgstr ""
msgstr "Achtung!"

#: lib/admin/class-groups-admin-welcome.php:172
msgid "We have made it even easier to protect your content!"
Expand Down Expand Up @@ -1399,6 +1421,10 @@ msgstr ""
"groups/\">Dokumentation</a> anzusehen um mehr darüber zu erfahren wie man es "
"verwendet."

#: lib/admin/class-groups-admin-notice.php:108
msgid "Yes, here we go!"
msgstr "Ja, auf geht’s!"

#: lib/views/class-groups-shortcodes.php:527
#, php-format
msgid "You are a member of the %s group."
Expand All @@ -1420,6 +1446,17 @@ msgstr ""
"Das System läuft mit Legacy Zugriffsbeschränkungen basierend auf Kapazitäten "
"aktiviert."

#: lib/admin/class-groups-admin-notice.php:119
#, php-format
msgid ""
"You can also follow <a href=\"%s\">@itthinx</a> on Twitter or visit <a href="
"\"%s\" target=\"_blank\">itthinx.com</a> to check out other free and premium "
"plugins we provide."
msgstr ""
"Sie können auch <a href=\"%s\">@itthinx</a> auf Twitter folgen oder <a href="
"\"%s\" target=\"_blank\">itthinx.com</a> um mehr über weitere kostenfreie "
"und Premium Plugins die wir bereitstellen zu erfahren."

#: legacy/access/class-groups-access-meta-boxes-legacy.php:312
msgid ""
"You can create a new group and capability here. The capability will be "
Expand Down Expand Up @@ -1510,7 +1547,7 @@ msgstr ""
"Man benötigt die entsprechenden Rechte um Zugriffsbeschränkungen setzen zu "
"können."

#: lib/access/class-groups-post-access.php:383
#: lib/access/class-groups-post-access.php:459
msgid ""
"You should use Groups_Post_Access_Legacy::create() to pass a capability "
"restriction instead."
Expand Down
44 changes: 36 additions & 8 deletions languages/groups.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
msgid ""
msgstr "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-12 14:20+0200\n"
"POT-Creation-Date: 2017-06-28 12:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -33,7 +33,7 @@ msgstr ""
msgid "(only unrestricted)"
msgstr ""

#: lib/admin/class-groups-admin-users.php:374
#: lib/admin/class-groups-admin-users.php:378
msgid "--"
msgstr ""

Expand Down Expand Up @@ -346,6 +346,11 @@ msgstr ""
msgid "Click to toggle the display of groups that grant the capabilities."
msgstr ""

#: lib/admin/class-groups-admin-notice.php:102
msgid "Could you please spare a minute and give it a review over at "
"WordPress.org?"
msgstr ""

#: lib/admin/groups-admin-options.php:286
msgid "Deactivation and data persistence"
msgstr ""
Expand Down Expand Up @@ -424,7 +429,7 @@ msgstr ""
msgid "Example:"
msgstr ""

#: lib/admin/class-groups-admin-users.php:275
#: lib/admin/class-groups-admin-users.php:279
msgid "Filter"
msgstr ""

Expand Down Expand Up @@ -481,14 +486,14 @@ msgstr ""
#: lib/admin/class-groups-admin-user-profile.php:72
#: lib/admin/class-groups-admin-user-profile.php:135
#: lib/admin/class-groups-admin-user-profile.php:159
#: lib/admin/class-groups-admin-users.php:347
#: lib/admin/class-groups-admin-users.php:351
#: lib/admin/class-groups-admin.php:245 lib/admin/class-groups-admin.php:246
#: lib/admin/class-groups-admin.php:275 lib/core/class-groups-help.php:63
#: lib/core/class-groups-help.php:68 lib/core/class-groups-help.php:69
msgid "Groups"
msgstr ""

#: lib/admin/class-groups-admin-post-columns.php:93
#: lib/admin/class-groups-admin-post-columns.php:96
msgctxt "Column header"
msgid "Groups"
msgstr ""
Expand Down Expand Up @@ -548,6 +553,10 @@ msgid "Here you can <strong>add</strong>, <strong>edit</strong> and "
"<strong>remove</strong> groups."
msgstr ""

#: lib/admin/class-groups-admin-notice.php:114
msgid "I have already done that."
msgstr ""

#: lib/admin/groups-admin-capabilities.php:313
#: lib/admin/groups-admin-groups.php:303
msgid "ID"
Expand Down Expand Up @@ -594,6 +603,10 @@ msgstr ""
msgid "Inherited capabilities:"
msgstr ""

#: lib/access/class-groups-post-access.php:150
msgid "Invalid post ID."
msgstr ""

#: lib/admin/class-groups-admin-welcome.php:158
msgid "It seems that you have updated from Groups 1.x where access "
"restrictions were based on capabilities."
Expand Down Expand Up @@ -623,6 +636,10 @@ msgstr ""
msgid "Log out"
msgstr ""

#: lib/admin/class-groups-admin-notice.php:100
msgid "Many thanks for using <strong>Groups</strong>!"
msgstr ""

#: legacy/access/class-groups-access-meta-boxes-legacy.php:503
#: lib/access/class-groups-access-meta-boxes.php:411
msgid "Media"
Expand Down Expand Up @@ -725,7 +742,7 @@ msgstr[1] ""
msgid "One or more capabilities required to read the entry."
msgstr ""

#: lib/admin/class-groups-admin-post-columns.php:92
#: lib/admin/class-groups-admin-post-columns.php:95
msgid "One or more groups granting access to entries."
msgstr ""

Expand Down Expand Up @@ -1083,7 +1100,7 @@ msgid "This means that if you had access restrictions in place that were "
"based on capabilities, your entries will still be protected."
msgstr ""

#: lib/access/class-groups-post-access.php:508
#: lib/access/class-groups-post-access.php:584
msgid "This method is deprecated. You should use Groups_Post_Access_Legacy::"
"get_read_post_capabilities() to retrieve the capabilities instead."
msgstr ""
Expand Down Expand Up @@ -1195,6 +1212,10 @@ msgid "Whether you are new to Groups or have been using it before, please "
"about how to use it."
msgstr ""

#: lib/admin/class-groups-admin-notice.php:108
msgid "Yes, here we go!"
msgstr ""

#: lib/views/class-groups-shortcodes.php:527
#, php-format
msgid "You are a member of the %s group."
Expand All @@ -1210,6 +1231,13 @@ msgid "You are running the system with legacy access control based on "
"capabilities enabled."
msgstr ""

#: lib/admin/class-groups-admin-notice.php:119
#, php-format
msgid "You can also follow <a href=\"%s\">@itthinx</a> on Twitter or visit "
"<a href=\"%s\" target=\"_blank\">itthinx.com</a> to check out other "
"free and premium plugins we provide."
msgstr ""

#: legacy/access/class-groups-access-meta-boxes-legacy.php:312
msgid "You can create a new group and capability here. The capability will "
"be assigned to the group and enabled to enforce read access. Group "
Expand Down Expand Up @@ -1273,7 +1301,7 @@ msgstr ""
msgid "You need to have permission to set access restrictions."
msgstr ""

#: lib/access/class-groups-post-access.php:383
#: lib/access/class-groups-post-access.php:459
msgid "You should use Groups_Post_Access_Legacy::create() to pass a "
"capability restriction instead."
msgstr ""
Loading

0 comments on commit e002a54

Please sign in to comment.