Skip to content

Commit

Permalink
Merge pull request #985 from publishpress/release-3.11.4
Browse files Browse the repository at this point in the history
Release 3.11.4
  • Loading branch information
agapetry authored Oct 26, 2023
2 parents 30ee1b0 + 3126a46 commit 7b5f87d
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 23 deletions.
4 changes: 3 additions & 1 deletion classes/PublishPress/Permissions/PermissionsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public static function getRoleTitle($role_name, $args = [])
$warning = '';

if (isset($pp->role_defs->pattern_roles[$arr_name[0]])) {
$role_caption = $pp->role_defs->pattern_roles[$arr_name[0]]->labels->$caption_prop;
$role_caption = (isset($pp->role_defs->pattern_roles[$arr_name[0]]->labels->$caption_prop))
? $pp->role_defs->pattern_roles[$arr_name[0]]->labels->$caption_prop
: '';

if (
$include_warnings && isset($wp_roles->role_names[$arr_name[0]])
Expand Down
34 changes: 24 additions & 10 deletions classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,30 @@ public function actAddMetaBoxes()

foreach (array_keys($operations) as $op) {
if ($op_obj = $pp->admin()->getOperationObject($op, $post_type)) {
$caption = ('associate' == $op)
? sprintf(
esc_html__('Permissions: Select this %s as Parent', 'press-permit-core'),
$type_obj->labels->singular_name
)
: sprintf(
esc_html__('Permissions: %s this %s', 'press-permit-core'),
$op_obj->label,
$type_obj->labels->singular_name
);
switch ($op) {
case 'associate':
$caption = sprintf(
esc_html__('Permissions: Select this %s as Parent', 'press-permit-core'),
$type_obj->labels->singular_name
);

break;

case 'assign':
$caption = sprintf(
esc_html__('Permissions: Assign Terms to this %s', 'press-permit-core'),
$type_obj->labels->singular_name
);

break;

default:
$caption = sprintf(
esc_html__('Permissions: %s this %s', 'press-permit-core'),
$op_obj->label,
$type_obj->labels->singular_name
);
}

add_meta_box(
"pp_{$op}_{$post_type}_exceptions",
Expand Down
Binary file modified languages/press-permit-core-es_ES.mo
Binary file not shown.
Binary file modified languages/press-permit-core-fr_FR.mo
Binary file not shown.
Binary file modified languages/press-permit-core-it_IT.mo
Binary file not shown.
28 changes: 16 additions & 12 deletions languages/press-permit-core.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the PublishPress Permissions plugin.
msgid ""
msgstr ""
"Project-Id-Version: PublishPress Permissions 3.11.3\n"
"Project-Id-Version: PublishPress Permissions 3.11.4\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-10-25T14:57:03+00:00\n"
"POT-Creation-Date: 2023-10-26T19:16:40+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: press-permit-core\n"
Expand Down Expand Up @@ -167,19 +167,19 @@ msgstr ""
msgid "Groups"
msgstr ""

#: classes/PublishPress/Permissions/PermissionsAdmin.php:93
#: classes/PublishPress/Permissions/PermissionsAdmin.php:138
#: classes/PublishPress/Permissions/PermissionsAdmin.php:170
#: classes/PublishPress/Permissions/PermissionsAdmin.php:95
#: classes/PublishPress/Permissions/PermissionsAdmin.php:140
#: classes/PublishPress/Permissions/PermissionsAdmin.php:172
msgid "(using default capabilities due to invalid %s definition)"
msgstr ""

#: classes/PublishPress/Permissions/PermissionsAdmin.php:126
#: classes/PublishPress/Permissions/PermissionsAdmin.php:148
#: classes/PublishPress/Permissions/PermissionsAdmin.php:128
#: classes/PublishPress/Permissions/PermissionsAdmin.php:150
msgid "%1$s&nbsp;%2$s&nbsp;%3$s-&nbsp;%4$s%5$s%6$s"
msgstr ""

#: classes/PublishPress/Permissions/PermissionsAdmin.php:161
#: classes/PublishPress/Permissions/PermissionsAdmin.php:180
#: classes/PublishPress/Permissions/PermissionsAdmin.php:163
#: classes/PublishPress/Permissions/PermissionsAdmin.php:182
msgid "%1$s&nbsp;%2$s%3$s"
msgstr ""

Expand Down Expand Up @@ -985,15 +985,19 @@ msgstr ""
msgid "Permissions Settings"
msgstr ""

#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:98
#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:99
msgid "Permissions: Select this %s as Parent"
msgstr ""

#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:102
#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:107
msgid "Permissions: Assign Terms to this %s"
msgstr ""

#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:115
msgid "Permissions: %s this %s"
msgstr ""

#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:150
#: classes/PublishPress/Permissions/UI/Dashboard/PostEdit.php:164
#: classes/PublishPress/Permissions/UI/Dashboard/TermEdit.php:337
msgid "enable custom permissions for %s"
msgstr ""
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ Yes, we use the phrase "publishpress-ppcore-install" to share install links. You

= 3.11.4 - 26 Oct 2023 =
* Fixed : Collaborative Publishing module was not loaded correctly on some installations
* Fixed : Caption for Permissions: Assign Term metabox in post editor
* Fixed : PHP Warnings on Permission Groups screen

= 3.11.3 - 25 Oct 2023 =
* Fixed : Some Permissions filtering was not applied on sites with a custom wp-admin URL
Expand Down

0 comments on commit 7b5f87d

Please sign in to comment.