• Resolved Tony Hayes

    (@majick)


    Really love this plugin. Has saved me a few times. It occurred to me a natural feature for this plugin would be to block specific plugin updates. What I mean is after a troublesome plugin has been rolled back to a previous working version, naturally you would want to prevent it being updated again and breaking things.

    Something like: https://wordpress.org/plugins/block-specific-plugin-updates/
    but that one hasn’t been updated in a long time.

    This would prevent rolled back plugins from being updated by another administrator (or the site owner/client) who is not yet aware of issues with the newer version. By this I mean that for a locked plugin:

    a) the plugin could not be updated through WP admin (and thus WP CLI also) until it is unlocked
    b) the update link on the plugins page would say “Updates Locked” but link to the settings page where plugins are locked and have a field listing the *reason* why the plugin is locked.

    So anyway that is my idea in a nutshell, really would be pretty easy to do. Again, thought this would be the best place for it to be rather than as a separate plugin.
    Oh and of course similar could be done for themes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Tony Hayes

    (@majick)

    Just noticed this one, similar to the other mentioned but closer to what I was saying, again hasn’t been updated in a while though:
    https://wordpress.org/plugins/lock-your-updates/

    And this one has the ability to block specific plugin updates also, but then it is more for handling automatic update:
    https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/

    Anyay, I thought something simple could be added into WP Rollback itself as in the first two plugins so as to not require extra plugins just to lock a single plugin update.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    That is interesting for sure. At this time I think that type of functionality is just outside the scope of the purpose of WP Rollback. But, we’re always open to Pull Requests here: https://github.com/WordImpress/WP-Rollback

    Thread Starter Tony Hayes

    (@majick)

    Had another look, it does seem like overkill to add all the locking stuff into WP Rollback, however I noticed that there is no action triggered upon a successful rollback. The upgrader class returns success or failure but nothing is done with it.

    An action hook could be used to trigger an update lock via another plugin (or some other use case like logging?) So I’ve submitted a pull request for that for now.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    That’s a great request, and thanks for the PR. We’ll look into it soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature Request: Block Plugin Updates’ is closed to new replies.