Changeset 3108493
- Timestamp:
- 06/27/2024 08:54:33 AM (21 months ago)
- Location:
- post-lockdown
- Files:
-
- 7 edited
- 1 copied
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
tags/4.0 (copied) (copied from post-lockdown/trunk)
-
tags/4.0/post-lockdown.php (modified) (2 diffs)
-
tags/4.0/readme.txt (modified) (3 diffs)
-
tags/4.0/src/PostLockdown/PostLockdown.php (modified) (1 diff)
-
trunk/post-lockdown.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/PostLockdown/PostLockdown.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-lockdown/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
post-lockdown/tags/4.0/post-lockdown.php
r3076973 r3108493 4 4 * Plugin URI: https://github.com/andyexeter/post-lockdown 5 5 * Description: Allows admins to protect selected posts and pages so they cannot be trashed or deleted by non-admin users. 6 * Version: 3.0.136 * Version: 4.0 7 7 * Requires at least: 4.6 8 8 * Requires PHP: 7.4 … … 14 14 * Domain Path: /languages 15 15 */ 16 if (is_admin() || (defined('WP_CLI') && WP_CLI)) { 17 require_once __DIR__ . '/src/PostLockdown/PostLockdown.php'; 18 require_once __DIR__ . '/src/PostLockdown/OptionsPage.php'; 19 require_once __DIR__ . '/src/PostLockdown/AdminNotice.php'; 20 require_once __DIR__ . '/src/PostLockdown/StatusColumn.php'; 21 require_once __DIR__ . '/src/PostLockdown/BulkActions.php'; 22 require_once __DIR__ . '/src/PostLockdown/WpCli.php'; 16 require_once __DIR__ . '/src/PostLockdown/PostLockdown.php'; 17 require_once __DIR__ . '/src/PostLockdown/OptionsPage.php'; 18 require_once __DIR__ . '/src/PostLockdown/AdminNotice.php'; 19 require_once __DIR__ . '/src/PostLockdown/StatusColumn.php'; 20 require_once __DIR__ . '/src/PostLockdown/BulkActions.php'; 21 require_once __DIR__ . '/src/PostLockdown/WpCli.php'; 23 22 24 global $postlockdown;25 $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));23 global $postlockdown; 24 $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__)); 26 25 27 register_uninstall_hook(__FILE__, ['PostLockdown', '_uninstall']);26 register_uninstall_hook(__FILE__, [PostLockdown\PostLockdown::class, '_uninstall']); 28 27 29 if (defined('WP_CLI') && WP_CLI) { 30 WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown)); 31 } 28 if (defined('WP_CLI') && WP_CLI) { 29 WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown)); 32 30 } -
post-lockdown/tags/4.0/readme.txt
r3076973 r3108493 5 5 Requires at least: 4.6 6 6 Tested up to: 6.5 7 Stable tag: 3.0.137 Stable tag: 4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 4.0 = 71 This is a major version release. Please read the following notes carefully before updating. 72 73 * Fixed a bug which caused the plugin to not work correctly with the new block editor (Gutenberg). This is fixed by loading the plugin for all requests (including REST requests) rather than just the admin area 74 * Fixed a bug which caused the uninstall hook to not be called when the plugin was deleted 69 75 70 76 = 3.0.13 = … … 142 148 == Upgrade Notice == 143 149 150 = 4.0 = 151 This is a major version release. Please read the changelog before updating. 152 144 153 = 3.0 = 145 154 This is a major version release. Please read the changelog before updating. -
post-lockdown/tags/4.0/src/PostLockdown/PostLockdown.php
r3076973 r3108493 7 7 /** Plugin key for options and the option page. */ 8 8 public const KEY = 'postlockdown'; 9 public const VERSION = ' 3.0.13';9 public const VERSION = '4.0'; 10 10 11 11 /** @var array List of post IDs which cannot be edited, trashed or deleted. */ -
post-lockdown/trunk/post-lockdown.php
r3076973 r3108493 4 4 * Plugin URI: https://github.com/andyexeter/post-lockdown 5 5 * Description: Allows admins to protect selected posts and pages so they cannot be trashed or deleted by non-admin users. 6 * Version: 3.0.136 * Version: 4.0 7 7 * Requires at least: 4.6 8 8 * Requires PHP: 7.4 … … 14 14 * Domain Path: /languages 15 15 */ 16 if (is_admin() || (defined('WP_CLI') && WP_CLI)) { 17 require_once __DIR__ . '/src/PostLockdown/PostLockdown.php'; 18 require_once __DIR__ . '/src/PostLockdown/OptionsPage.php'; 19 require_once __DIR__ . '/src/PostLockdown/AdminNotice.php'; 20 require_once __DIR__ . '/src/PostLockdown/StatusColumn.php'; 21 require_once __DIR__ . '/src/PostLockdown/BulkActions.php'; 22 require_once __DIR__ . '/src/PostLockdown/WpCli.php'; 16 require_once __DIR__ . '/src/PostLockdown/PostLockdown.php'; 17 require_once __DIR__ . '/src/PostLockdown/OptionsPage.php'; 18 require_once __DIR__ . '/src/PostLockdown/AdminNotice.php'; 19 require_once __DIR__ . '/src/PostLockdown/StatusColumn.php'; 20 require_once __DIR__ . '/src/PostLockdown/BulkActions.php'; 21 require_once __DIR__ . '/src/PostLockdown/WpCli.php'; 23 22 24 global $postlockdown;25 $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));23 global $postlockdown; 24 $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__)); 26 25 27 register_uninstall_hook(__FILE__, ['PostLockdown', '_uninstall']);26 register_uninstall_hook(__FILE__, [PostLockdown\PostLockdown::class, '_uninstall']); 28 27 29 if (defined('WP_CLI') && WP_CLI) { 30 WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown)); 31 } 28 if (defined('WP_CLI') && WP_CLI) { 29 WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown)); 32 30 } -
post-lockdown/trunk/readme.txt
r3076973 r3108493 5 5 Requires at least: 4.6 6 6 Tested up to: 6.5 7 Stable tag: 3.0.137 Stable tag: 4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 4.0 = 71 This is a major version release. Please read the following notes carefully before updating. 72 73 * Fixed a bug which caused the plugin to not work correctly with the new block editor (Gutenberg). This is fixed by loading the plugin for all requests (including REST requests) rather than just the admin area 74 * Fixed a bug which caused the uninstall hook to not be called when the plugin was deleted 69 75 70 76 = 3.0.13 = … … 142 148 == Upgrade Notice == 143 149 150 = 4.0 = 151 This is a major version release. Please read the changelog before updating. 152 144 153 = 3.0 = 145 154 This is a major version release. Please read the changelog before updating. -
post-lockdown/trunk/src/PostLockdown/PostLockdown.php
r3076973 r3108493 7 7 /** Plugin key for options and the option page. */ 8 8 public const KEY = 'postlockdown'; 9 public const VERSION = ' 3.0.13';9 public const VERSION = '4.0'; 10 10 11 11 /** @var array List of post IDs which cannot be edited, trashed or deleted. */
Note: See TracChangeset
for help on using the changeset viewer.