Plugin Directory

Changeset 3108493


Ignore:
Timestamp:
06/27/2024 08:54:33 AM (21 months ago)
Author:
andyexeter
Message:

Update to version 4.0 from GitHub

Location:
post-lockdown
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • post-lockdown/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • post-lockdown/tags/4.0/post-lockdown.php

    r3076973 r3108493  
    44 * Plugin URI: https://github.com/andyexeter/post-lockdown
    55 * Description: Allows admins to protect selected posts and pages so they cannot be trashed or deleted by non-admin users.
    6  * Version: 3.0.13
     6 * Version: 4.0
    77 * Requires at least: 4.6
    88 * Requires PHP: 7.4
     
    1414 * Domain Path: /languages
    1515 */
    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';
     16require_once __DIR__ . '/src/PostLockdown/PostLockdown.php';
     17require_once __DIR__ . '/src/PostLockdown/OptionsPage.php';
     18require_once __DIR__ . '/src/PostLockdown/AdminNotice.php';
     19require_once __DIR__ . '/src/PostLockdown/StatusColumn.php';
     20require_once __DIR__ . '/src/PostLockdown/BulkActions.php';
     21require_once __DIR__ . '/src/PostLockdown/WpCli.php';
    2322
    24     global $postlockdown;
    25     $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));
     23global $postlockdown;
     24$postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));
    2625
    27     register_uninstall_hook(__FILE__, ['PostLockdown', '_uninstall']);
     26register_uninstall_hook(__FILE__, [PostLockdown\PostLockdown::class, '_uninstall']);
    2827
    29     if (defined('WP_CLI') && WP_CLI) {
    30         WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown));
    31     }
     28if (defined('WP_CLI') && WP_CLI) {
     29    WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown));
    3230}
  • post-lockdown/tags/4.0/readme.txt

    r3076973 r3108493  
    55Requires at least: 4.6
    66Tested up to: 6.5
    7 Stable tag: 3.0.13
     7Stable tag: 4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767
    6868== Changelog ==
     69
     70= 4.0 =
     71This 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
    6975
    7076= 3.0.13 =
     
    142148== Upgrade Notice ==
    143149
     150= 4.0 =
     151This is a major version release. Please read the changelog before updating.
     152
    144153= 3.0 =
    145154This is a major version release. Please read the changelog before updating.
  • post-lockdown/tags/4.0/src/PostLockdown/PostLockdown.php

    r3076973 r3108493  
    77    /** Plugin key for options and the option page. */
    88    public const KEY     = 'postlockdown';
    9     public const VERSION = '3.0.13';
     9    public const VERSION = '4.0';
    1010
    1111    /** @var array List of post IDs which cannot be edited, trashed or deleted. */
  • post-lockdown/trunk/post-lockdown.php

    r3076973 r3108493  
    44 * Plugin URI: https://github.com/andyexeter/post-lockdown
    55 * Description: Allows admins to protect selected posts and pages so they cannot be trashed or deleted by non-admin users.
    6  * Version: 3.0.13
     6 * Version: 4.0
    77 * Requires at least: 4.6
    88 * Requires PHP: 7.4
     
    1414 * Domain Path: /languages
    1515 */
    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';
     16require_once __DIR__ . '/src/PostLockdown/PostLockdown.php';
     17require_once __DIR__ . '/src/PostLockdown/OptionsPage.php';
     18require_once __DIR__ . '/src/PostLockdown/AdminNotice.php';
     19require_once __DIR__ . '/src/PostLockdown/StatusColumn.php';
     20require_once __DIR__ . '/src/PostLockdown/BulkActions.php';
     21require_once __DIR__ . '/src/PostLockdown/WpCli.php';
    2322
    24     global $postlockdown;
    25     $postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));
     23global $postlockdown;
     24$postlockdown = new PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));
    2625
    27     register_uninstall_hook(__FILE__, ['PostLockdown', '_uninstall']);
     26register_uninstall_hook(__FILE__, [PostLockdown\PostLockdown::class, '_uninstall']);
    2827
    29     if (defined('WP_CLI') && WP_CLI) {
    30         WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown));
    31     }
     28if (defined('WP_CLI') && WP_CLI) {
     29    WP_CLI::add_command('postlockdown', new PostLockdown\WpCli($postlockdown));
    3230}
  • post-lockdown/trunk/readme.txt

    r3076973 r3108493  
    55Requires at least: 4.6
    66Tested up to: 6.5
    7 Stable tag: 3.0.13
     7Stable tag: 4.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767
    6868== Changelog ==
     69
     70= 4.0 =
     71This 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
    6975
    7076= 3.0.13 =
     
    142148== Upgrade Notice ==
    143149
     150= 4.0 =
     151This is a major version release. Please read the changelog before updating.
     152
    144153= 3.0 =
    145154This is a major version release. Please read the changelog before updating.
  • post-lockdown/trunk/src/PostLockdown/PostLockdown.php

    r3076973 r3108493  
    77    /** Plugin key for options and the option page. */
    88    public const KEY     = 'postlockdown';
    9     public const VERSION = '3.0.13';
     9    public const VERSION = '4.0';
    1010
    1111    /** @var array List of post IDs which cannot be edited, trashed or deleted. */
Note: See TracChangeset for help on using the changeset viewer.