Changeset 3285927
- Timestamp:
- 05/02/2025 01:23:06 AM (11 months ago)
- Location:
- press-permit-core
- Files:
-
- 18 edited
- 1 copied
-
tags/4.2.1 (copied) (copied from press-permit-core/trunk)
-
tags/4.2.1/classes/PublishPress/Permissions/UI/AgentPermissions.php (modified) (2 diffs)
-
tags/4.2.1/classes/PublishPress/Permissions/UI/AgentPermissionsUI.php (modified) (3 diffs)
-
tags/4.2.1/languages/press-permit-core.pot (modified) (2 diffs)
-
tags/4.2.1/press-permit-core.php (modified) (2 diffs)
-
tags/4.2.1/readme.txt (modified) (2 diffs)
-
tags/4.2.1/vendor/autoload.php (modified) (1 diff)
-
tags/4.2.1/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/4.2.1/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/4.2.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/classes/PublishPress/Permissions/UI/AgentPermissions.php (modified) (2 diffs)
-
trunk/classes/PublishPress/Permissions/UI/AgentPermissionsUI.php (modified) (3 diffs)
-
trunk/languages/press-permit-core.pot (modified) (2 diffs)
-
trunk/press-permit-core.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
press-permit-core/tags/4.2.1/classes/PublishPress/Permissions/UI/AgentPermissions.php
r3265343 r3285927 310 310 <div> 311 311 <?php if ($agent_id) { 312 // @todo: Consider how to reinstate a read-only summary of the Supplemental Roles and Permissions the user has from Group membership 313 314 /* 312 315 $roles = []; 313 316 $user = $pp->getUser($agent_id); … … 371 374 372 375 AgentPermissionsUI::currentExceptionsUI($exceptions, ['read_only' => true, 'class' => 'pp-group-roles', 'caption' => $role_group_caption, 'show_groups_link' => true]); 376 */ 373 377 } else { 374 378 ?> -
press-permit-core/tags/4.2.1/classes/PublishPress/Permissions/UI/AgentPermissionsUI.php
r3285747 r3285927 537 537 $args['class'] = ('user' == $agent_type) ? 'pp-user-roles' : 'pp-group-roles'; 538 538 $args['agent_type'] = $agent_type; 539 self::currentRolesUI V2($roles, $args);539 self::currentRolesUI($roles, $args); 540 540 541 541 $post_types[''] = ''; // also retrieve exceptions for (all) post type … … 561 561 $args['class'] = ('user' == $agent_type) ? 'pp-user-roles' : 'pp-group-roles'; 562 562 563 self::currentExceptionsUI V2($exc, $args);563 self::currentExceptionsUI($exc, $args); 564 564 565 565 do_action('presspermit_group_roles_ui', $agent_type, $agent_id); 566 566 } 567 567 568 public static function currentRolesUI V2($roles, $args = [])568 public static function currentRolesUI($roles, $args = []) 569 569 { 570 570 $defaults = ['read_only' => false, 'caption' => '', 'class' => 'pp-group-roles', 'link' => '', 'agent_type' => '', 'show_groups_link' => false]; … … 726 726 } 727 727 728 public static function currentExceptionsUI V2($exc_results, $args = [])728 public static function currentExceptionsUI($exc_results, $args = []) 729 729 { 730 730 $defaults = [ -
press-permit-core/tags/4.2.1/languages/press-permit-core.pot
r3285747 r3285927 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-05-0 1T12:06:46+00:00\n"12 "POT-Creation-Date: 2025-05-02T01:01:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 474 474 msgstr "" 475 475 476 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:341 477 msgid "Supplemental Roles %1$s(from primary role or %2$sgroup membership%3$s)%4$s" 478 msgstr "" 479 480 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:365 481 msgid "Specific Permissions %1$s(from primary role or %2$sgroup membership%3$s)%4$s" 482 msgstr "" 483 484 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:378 476 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:382 485 477 msgid "View currently stored user permissions:" 486 478 msgstr "" 487 479 488 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 2480 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:386 489 481 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:542 490 482 msgid "%1$sUsers who have Supplemental Roles assigned directly%2$s" 491 483 msgstr "" 492 484 493 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 3485 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:387 494 486 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:543 495 487 msgid "%1$sUsers who have Specific Permissions assigned directly%2$s" 496 488 msgstr "" 497 489 498 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 4490 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:388 499 491 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:544 500 492 msgid "%1$sUsers who have Supplemental Roles or Specific Permissions directly%2$s" -
press-permit-core/tags/4.2.1/press-permit-core.php
r3285747 r3285927 7 7 * Author: PublishPress 8 8 * Author URI: https://publishpress.com/ 9 * Version: 4.2. 09 * Version: 4.2.1 10 10 * Text Domain: press-permit-core 11 11 * Domain Path: /languages/ … … 206 206 } 207 207 208 define('PRESSPERMIT_VERSION', '4.2. 0');208 define('PRESSPERMIT_VERSION', '4.2.1'); 209 209 210 210 if (!defined('PRESSPERMIT_READ_PUBLIC_CAP')) { -
press-permit-core/tags/4.2.1/readme.txt
r3285747 r3285927 4 4 Tags: restrict, access, user, privacy, capabilities 5 5 Requires at least: 5.5 6 Tested up to: 6.8 6 Tested up to: 6.8.1 7 7 Requires PHP: 7.2.5 8 Stable tag: 4.2. 08 Stable tag: 4.2.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 240 240 241 241 == Changelog == 242 243 = 4.2.1 - 2 May 2025 = 244 * Fixed: Group Permissions on the Edit User screen now display with the correct formatting. #1601 245 * Fixed: Resolved an uncaught error that occurred on the Edit Group screen under certain conditions. #1598 242 246 243 247 = 4.2.0 - 1 May 2025 = -
press-permit-core/tags/4.2.1/vendor/autoload.php
r3285747 r3285927 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8::getLoader();25 return ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf::getLoader(); -
press-permit-core/tags/4.2.1/vendor/composer/autoload_real.php
r3285747 r3285927 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c85 class ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c8::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
press-permit-core/tags/4.2.1/vendor/composer/autoload_static.php
r3285747 r3285927 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c87 class ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf 8 8 { 9 9 public static $classMap = array ( … … 14 14 { 15 15 return \Closure::bind(function () use ($loader) { 16 $loader->classMap = ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c8::$classMap;16 $loader->classMap = ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf::$classMap; 17 17 18 18 }, null, ClassLoader::class); -
press-permit-core/tags/4.2.1/vendor/composer/installed.php
r3285747 r3285927 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' a91b7463040fda85ff3219a5b1bae62654b93140',6 'reference' => '880ed1cd7fc1476dc5e304cf585462fa801ccf1b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' a91b7463040fda85ff3219a5b1bae62654b93140',16 'reference' => '880ed1cd7fc1476dc5e304cf585462fa801ccf1b', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
press-permit-core/trunk/classes/PublishPress/Permissions/UI/AgentPermissions.php
r3265343 r3285927 310 310 <div> 311 311 <?php if ($agent_id) { 312 // @todo: Consider how to reinstate a read-only summary of the Supplemental Roles and Permissions the user has from Group membership 313 314 /* 312 315 $roles = []; 313 316 $user = $pp->getUser($agent_id); … … 371 374 372 375 AgentPermissionsUI::currentExceptionsUI($exceptions, ['read_only' => true, 'class' => 'pp-group-roles', 'caption' => $role_group_caption, 'show_groups_link' => true]); 376 */ 373 377 } else { 374 378 ?> -
press-permit-core/trunk/classes/PublishPress/Permissions/UI/AgentPermissionsUI.php
r3285747 r3285927 537 537 $args['class'] = ('user' == $agent_type) ? 'pp-user-roles' : 'pp-group-roles'; 538 538 $args['agent_type'] = $agent_type; 539 self::currentRolesUI V2($roles, $args);539 self::currentRolesUI($roles, $args); 540 540 541 541 $post_types[''] = ''; // also retrieve exceptions for (all) post type … … 561 561 $args['class'] = ('user' == $agent_type) ? 'pp-user-roles' : 'pp-group-roles'; 562 562 563 self::currentExceptionsUI V2($exc, $args);563 self::currentExceptionsUI($exc, $args); 564 564 565 565 do_action('presspermit_group_roles_ui', $agent_type, $agent_id); 566 566 } 567 567 568 public static function currentRolesUI V2($roles, $args = [])568 public static function currentRolesUI($roles, $args = []) 569 569 { 570 570 $defaults = ['read_only' => false, 'caption' => '', 'class' => 'pp-group-roles', 'link' => '', 'agent_type' => '', 'show_groups_link' => false]; … … 726 726 } 727 727 728 public static function currentExceptionsUI V2($exc_results, $args = [])728 public static function currentExceptionsUI($exc_results, $args = []) 729 729 { 730 730 $defaults = [ -
press-permit-core/trunk/languages/press-permit-core.pot
r3285747 r3285927 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-05-0 1T12:06:46+00:00\n"12 "POT-Creation-Date: 2025-05-02T01:01:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 474 474 msgstr "" 475 475 476 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:341 477 msgid "Supplemental Roles %1$s(from primary role or %2$sgroup membership%3$s)%4$s" 478 msgstr "" 479 480 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:365 481 msgid "Specific Permissions %1$s(from primary role or %2$sgroup membership%3$s)%4$s" 482 msgstr "" 483 484 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:378 476 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:382 485 477 msgid "View currently stored user permissions:" 486 478 msgstr "" 487 479 488 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 2480 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:386 489 481 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:542 490 482 msgid "%1$sUsers who have Supplemental Roles assigned directly%2$s" 491 483 msgstr "" 492 484 493 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 3485 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:387 494 486 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:543 495 487 msgid "%1$sUsers who have Specific Permissions assigned directly%2$s" 496 488 msgstr "" 497 489 498 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:38 4490 #: classes/PublishPress/Permissions/UI/AgentPermissions.php:388 499 491 #: classes/PublishPress/Permissions/UI/SettingsTabAdvanced.php:544 500 492 msgid "%1$sUsers who have Supplemental Roles or Specific Permissions directly%2$s" -
press-permit-core/trunk/press-permit-core.php
r3285747 r3285927 7 7 * Author: PublishPress 8 8 * Author URI: https://publishpress.com/ 9 * Version: 4.2. 09 * Version: 4.2.1 10 10 * Text Domain: press-permit-core 11 11 * Domain Path: /languages/ … … 206 206 } 207 207 208 define('PRESSPERMIT_VERSION', '4.2. 0');208 define('PRESSPERMIT_VERSION', '4.2.1'); 209 209 210 210 if (!defined('PRESSPERMIT_READ_PUBLIC_CAP')) { -
press-permit-core/trunk/readme.txt
r3285747 r3285927 4 4 Tags: restrict, access, user, privacy, capabilities 5 5 Requires at least: 5.5 6 Tested up to: 6.8 6 Tested up to: 6.8.1 7 7 Requires PHP: 7.2.5 8 Stable tag: 4.2. 08 Stable tag: 4.2.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 240 240 241 241 == Changelog == 242 243 = 4.2.1 - 2 May 2025 = 244 * Fixed: Group Permissions on the Edit User screen now display with the correct formatting. #1601 245 * Fixed: Resolved an uncaught error that occurred on the Edit Group screen under certain conditions. #1598 242 246 243 247 = 4.2.0 - 1 May 2025 = -
press-permit-core/trunk/vendor/autoload.php
r3285747 r3285927 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8::getLoader();25 return ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf::getLoader(); -
press-permit-core/trunk/vendor/composer/autoload_real.php
r3285747 r3285927 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c85 class ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit f913ad6247ac9aed2117d4ee9fdfd4c8', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitb3013ab8a565a13c999d7c02084f3fcf', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c8::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
press-permit-core/trunk/vendor/composer/autoload_static.php
r3285747 r3285927 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c87 class ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf 8 8 { 9 9 public static $classMap = array ( … … 14 14 { 15 15 return \Closure::bind(function () use ($loader) { 16 $loader->classMap = ComposerStaticInit f913ad6247ac9aed2117d4ee9fdfd4c8::$classMap;16 $loader->classMap = ComposerStaticInitb3013ab8a565a13c999d7c02084f3fcf::$classMap; 17 17 18 18 }, null, ClassLoader::class); -
press-permit-core/trunk/vendor/composer/installed.php
r3285747 r3285927 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' a91b7463040fda85ff3219a5b1bae62654b93140',6 'reference' => '880ed1cd7fc1476dc5e304cf585462fa801ccf1b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' a91b7463040fda85ff3219a5b1bae62654b93140',16 'reference' => '880ed1cd7fc1476dc5e304cf585462fa801ccf1b', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.