Changeset 3224937
- Timestamp:
- 01/18/2025 08:58:25 PM (8 weeks ago)
- Location:
- reset-roles-and-capabilities
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
reset-roles-and-capabilities/tags/2.8/CHANGELOG.md
r3047211 r3224937 3 3 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 4 4 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 5 6 ## [2.8] - 2025-01-18 7 8 ### Changed 9 - Tested up to WP 6.7 5 10 6 11 ## [2.7] - 2024-03-07 … … 20 25 21 26 ## [2.4] - 2022-08-17 22 23 ### Fixed24 - Removed "Trunk" folder from Tagged Version25 27 26 28 ### Changed -
reset-roles-and-capabilities/tags/2.8/readme.txt
r3047211 r3224937 3 3 Tags: reset, roles, capabilities, default, users 4 4 Requires at least: 2.9 5 Tested up to: 6. 46 Stable tag: 2. 75 Tested up to: 6.7 6 Stable tag: 2.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 10 11 Resets WordPress Roles and Capabilities to their defaults and deactivates the plugin after the process is completed. 12 13 == Description == 14 11 15 This plugin does only one thing: Reset Roles and Capabilities to WordPress defaults. Just install and activate it. 12 16 Once the process is finished, the plugin will deactivate itself. 13 14 17 15 18 == Changelog == -
reset-roles-and-capabilities/tags/2.8/reset-roles-and-capabilities.php
r3047211 r3224937 4 4 * Plugin URI: https://wordpress.org/plugins/reset-roles-and-capabilities/ 5 5 * Description: Reset Roles and Capabilities to WordPress defaults 6 * Version: 2. 76 * Version: 2.8 7 7 * Requires at least: 2.9 8 8 * Author: Francesco Taurino … … 15 15 */ 16 16 namespace ResetRolesAndCapabilities; 17 17 18 /** 18 19 * Transient Name & Plugin Slug … … 21 22 22 23 /** 23 * Time until expiration in seconds24 * Expiration time in seconds. 24 25 */ 25 26 const TRANSIENT_TIME = 600; 26 27 27 28 /* 28 * Set the activation hook 29 * Set the activation hook. 29 30 */ 30 31 register_activation_hook( __FILE__, function () … … 44 45 45 46 /** 46 * Fetch a Role definition.47 * Fetches a role definition. 47 48 */ 48 49 $role = get_role($role_name); … … 51 52 52 53 /** 53 * Removes a capability from a role 54 * Removes a capability from a role. 54 55 */ 55 56 $role->remove_cap($capability); … … 58 59 59 60 /** 60 * Remove role, if it exists.61 * Removes the role, if it exists. 61 62 */ 62 63 remove_role($role_name); … … 65 66 66 67 /** 67 * Execute WordPress role creation for thevarious WordPress versions.68 * Executes WordPress role creation for various WordPress versions. 68 69 */ 69 70 populate_roles(); 70 71 71 72 /** 72 * Set a transient to show a success message73 */ 74 set_transient(TRANSIENT_NAME, __(' Roles and Capabilities have been reset to WordPress defaults. The plugin has been deactivated.', 'reset-roles-and-capabilities'), TRANSIENT_TIME);73 * Sets a transient to show a success message. 74 */ 75 set_transient(TRANSIENT_NAME, __('The roles and capabilities have been reset to WordPress defaults, and the plugin has been deactivated.', 'reset-roles-and-capabilities'), TRANSIENT_TIME); 75 76 76 77 }); … … 78 79 79 80 /** 80 * Back compatibility 81 * WordPress < 4.6 81 * Backward compatibility for WordPress < 4.6. 82 82 * @link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#loading-text-domain 83 83 */ … … 89 89 90 90 /** 91 * Hide default admin notice on plugin activation91 * Hides the default admin notice on plugin activation. 92 92 */ 93 93 add_action( 'admin_head', function() … … 97 97 98 98 /** 99 * Show a message after activation and then delete the transient99 * Shows a message after activation and then deletes the transient. 100 100 */ 101 101 add_action('admin_notices', function () … … 116 116 117 117 /** 118 * Deactivate the plugin118 * Deactivates the plugin. 119 119 */ 120 120 add_action('admin_init', function () -
reset-roles-and-capabilities/trunk/CHANGELOG.md
r3047211 r3224937 3 3 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 4 4 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 5 6 ## [2.8] - 2025-01-18 7 8 ### Changed 9 - Tested up to WP 6.7 5 10 6 11 ## [2.7] - 2024-03-07 … … 20 25 21 26 ## [2.4] - 2022-08-17 22 23 ### Fixed24 - Removed "Trunk" folder from Tagged Version25 27 26 28 ### Changed -
reset-roles-and-capabilities/trunk/readme.txt
r3047211 r3224937 3 3 Tags: reset, roles, capabilities, default, users 4 4 Requires at least: 2.9 5 Tested up to: 6. 46 Stable tag: 2. 75 Tested up to: 6.7 6 Stable tag: 2.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 10 11 Resets WordPress Roles and Capabilities to their defaults and deactivates the plugin after the process is completed. 12 13 == Description == 14 11 15 This plugin does only one thing: Reset Roles and Capabilities to WordPress defaults. Just install and activate it. 12 16 Once the process is finished, the plugin will deactivate itself. 13 14 17 15 18 == Changelog == -
reset-roles-and-capabilities/trunk/reset-roles-and-capabilities.php
r3047211 r3224937 4 4 * Plugin URI: https://wordpress.org/plugins/reset-roles-and-capabilities/ 5 5 * Description: Reset Roles and Capabilities to WordPress defaults 6 * Version: 2. 76 * Version: 2.8 7 7 * Requires at least: 2.9 8 8 * Author: Francesco Taurino … … 15 15 */ 16 16 namespace ResetRolesAndCapabilities; 17 17 18 /** 18 19 * Transient Name & Plugin Slug … … 21 22 22 23 /** 23 * Time until expiration in seconds24 * Expiration time in seconds. 24 25 */ 25 26 const TRANSIENT_TIME = 600; 26 27 27 28 /* 28 * Set the activation hook 29 * Set the activation hook. 29 30 */ 30 31 register_activation_hook( __FILE__, function () … … 44 45 45 46 /** 46 * Fetch a Role definition.47 * Fetches a role definition. 47 48 */ 48 49 $role = get_role($role_name); … … 51 52 52 53 /** 53 * Removes a capability from a role 54 * Removes a capability from a role. 54 55 */ 55 56 $role->remove_cap($capability); … … 58 59 59 60 /** 60 * Remove role, if it exists.61 * Removes the role, if it exists. 61 62 */ 62 63 remove_role($role_name); … … 65 66 66 67 /** 67 * Execute WordPress role creation for thevarious WordPress versions.68 * Executes WordPress role creation for various WordPress versions. 68 69 */ 69 70 populate_roles(); 70 71 71 72 /** 72 * Set a transient to show a success message73 */ 74 set_transient(TRANSIENT_NAME, __(' Roles and Capabilities have been reset to WordPress defaults. The plugin has been deactivated.', 'reset-roles-and-capabilities'), TRANSIENT_TIME);73 * Sets a transient to show a success message. 74 */ 75 set_transient(TRANSIENT_NAME, __('The roles and capabilities have been reset to WordPress defaults, and the plugin has been deactivated.', 'reset-roles-and-capabilities'), TRANSIENT_TIME); 75 76 76 77 }); … … 78 79 79 80 /** 80 * Back compatibility 81 * WordPress < 4.6 81 * Backward compatibility for WordPress < 4.6. 82 82 * @link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#loading-text-domain 83 83 */ … … 89 89 90 90 /** 91 * Hide default admin notice on plugin activation91 * Hides the default admin notice on plugin activation. 92 92 */ 93 93 add_action( 'admin_head', function() … … 97 97 98 98 /** 99 * Show a message after activation and then delete the transient99 * Shows a message after activation and then deletes the transient. 100 100 */ 101 101 add_action('admin_notices', function () … … 116 116 117 117 /** 118 * Deactivate the plugin118 * Deactivates the plugin. 119 119 */ 120 120 add_action('admin_init', function ()
Note: See TracChangeset
for help on using the changeset viewer.