Changeset 3197624
- Timestamp:
- 11/26/2024 06:05:33 PM (16 months ago)
- Location:
- post-lockdown
- Files:
-
- 8 edited
- 1 copied
-
tags/4.0.2 (copied) (copied from post-lockdown/trunk)
-
tags/4.0.2/post-lockdown.php (modified) (1 diff)
-
tags/4.0.2/readme.txt (modified) (2 diffs)
-
tags/4.0.2/src/PostLockdown/BulkActions.php (modified) (2 diffs)
-
tags/4.0.2/src/PostLockdown/PostLockdown.php (modified) (1 diff)
-
trunk/post-lockdown.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/PostLockdown/BulkActions.php (modified) (2 diffs)
-
trunk/src/PostLockdown/PostLockdown.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
post-lockdown/tags/4.0.2/post-lockdown.php
r3108493 r3197624 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: 4.0 6 * Version: 4.0.2 7 7 * Requires at least: 4.6 8 8 * Requires PHP: 7.4 -
post-lockdown/tags/4.0.2/readme.txt
r3108493 r3197624 4 4 Tags: posts, lock, protect, capabilities, capability, trash, delete 5 5 Requires at least: 4.6 6 Tested up to: 6. 57 Stable tag: 4.0 6 Tested up to: 6.7 7 Stable tag: 4.0.2 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.2 = 71 72 * Fixed a warning in WordPress 6.7 related to loading translations to early 69 73 70 74 = 4.0 = -
post-lockdown/tags/4.0.2/src/PostLockdown/BulkActions.php
r3076973 r3197624 7 7 /** @var PostLockdown */ 8 8 private $postlockdown; 9 /** @var array */10 private $bulk_actions;11 9 12 10 public function __construct(PostLockdown $postlockdown) 13 11 { 14 12 $this->postlockdown = $postlockdown; 15 $this->bulk_actions = [16 'postlockdown-lock' => __('Post Lockdown: Lock', 'post-lockdown'),17 'postlockdown-unlock' => __('Post Lockdown: Unlock', 'post-lockdown'),18 'postlockdown-protect' => __('Post Lockdown: Protect', 'post-lockdown'),19 'postlockdown-unprotect' => __('Post Lockdown: Unprotect', 'post-lockdown'),20 ];21 13 22 14 add_action('admin_init', [$this, '_set_post_type_hooks']); … … 46 38 public function _add_bulk_actions($bulk_actions) 47 39 { 48 return array_merge($bulk_actions, $this->bulk_actions); 40 return array_merge($bulk_actions, [ 41 'postlockdown-lock' => __('Post Lockdown: Lock', 'post-lockdown'), 42 'postlockdown-unlock' => __('Post Lockdown: Unlock', 'post-lockdown'), 43 'postlockdown-protect' => __('Post Lockdown: Protect', 'post-lockdown'), 44 'postlockdown-unprotect' => __('Post Lockdown: Unprotect', 'post-lockdown'), 45 ]); 49 46 } 50 47 -
post-lockdown/tags/4.0.2/src/PostLockdown/PostLockdown.php
r3108493 r3197624 7 7 /** Plugin key for options and the option page. */ 8 8 public const KEY = 'postlockdown'; 9 public const VERSION = '4.0 ';9 public const VERSION = '4.0.2'; 10 10 11 11 /** @var array List of post IDs which cannot be edited, trashed or deleted. */ -
post-lockdown/trunk/post-lockdown.php
r3108493 r3197624 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: 4.0 6 * Version: 4.0.2 7 7 * Requires at least: 4.6 8 8 * Requires PHP: 7.4 -
post-lockdown/trunk/readme.txt
r3108493 r3197624 4 4 Tags: posts, lock, protect, capabilities, capability, trash, delete 5 5 Requires at least: 4.6 6 Tested up to: 6. 57 Stable tag: 4.0 6 Tested up to: 6.7 7 Stable tag: 4.0.2 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.2 = 71 72 * Fixed a warning in WordPress 6.7 related to loading translations to early 69 73 70 74 = 4.0 = -
post-lockdown/trunk/src/PostLockdown/BulkActions.php
r3076973 r3197624 7 7 /** @var PostLockdown */ 8 8 private $postlockdown; 9 /** @var array */10 private $bulk_actions;11 9 12 10 public function __construct(PostLockdown $postlockdown) 13 11 { 14 12 $this->postlockdown = $postlockdown; 15 $this->bulk_actions = [16 'postlockdown-lock' => __('Post Lockdown: Lock', 'post-lockdown'),17 'postlockdown-unlock' => __('Post Lockdown: Unlock', 'post-lockdown'),18 'postlockdown-protect' => __('Post Lockdown: Protect', 'post-lockdown'),19 'postlockdown-unprotect' => __('Post Lockdown: Unprotect', 'post-lockdown'),20 ];21 13 22 14 add_action('admin_init', [$this, '_set_post_type_hooks']); … … 46 38 public function _add_bulk_actions($bulk_actions) 47 39 { 48 return array_merge($bulk_actions, $this->bulk_actions); 40 return array_merge($bulk_actions, [ 41 'postlockdown-lock' => __('Post Lockdown: Lock', 'post-lockdown'), 42 'postlockdown-unlock' => __('Post Lockdown: Unlock', 'post-lockdown'), 43 'postlockdown-protect' => __('Post Lockdown: Protect', 'post-lockdown'), 44 'postlockdown-unprotect' => __('Post Lockdown: Unprotect', 'post-lockdown'), 45 ]); 49 46 } 50 47 -
post-lockdown/trunk/src/PostLockdown/PostLockdown.php
r3108493 r3197624 7 7 /** Plugin key for options and the option page. */ 8 8 public const KEY = 'postlockdown'; 9 public const VERSION = '4.0 ';9 public const VERSION = '4.0.2'; 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.