GithubHelp home page GithubHelp logo

wprobot / rollback-auto-update Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afragen/rollback-auto-update

0.0 0.0 0.0 195 KB

Rollback protection from a plugin update that results in a PHP fatal or error

License: MIT License

PHP 100.00%

rollback-auto-update's Introduction

Rollback Auto Update

  • Contributors: afragen, costdev
  • Author: WP Core Contributors
  • License: MIT
  • Requires at least: 5.9
  • Requires PHP: 5.6
  • Stable tag: main

Rollback protection from a plugin auto-update whose activation would result in a PHP fatal or error. This is part of the Rollback Update Failure feature project.

Description

Rollback protection from a plugin auto-update whose activation would result in a PHP fatal or error. This is part of the Rollback Update Failure feature project.

The Rollback Update Failure plugin must be installed and active.

Testing

To test you must have a plugin that is capable of being updated and whose update contains a PHP fatal error or warning upon activation.

The simplest way to test is to download, install, and activate this plugin and Git Updater. Then install the test plugin, Rollback Fatal Plugin, via WP-CLI with the following command.

wp plugin install https://github.com/afragen/rollback-fatal-plugin/archive/refs/heads/main.zip

If you wish to download the zip directly, you will need to unzip, rename the containing folder to remove the -main, re-zip, and then install via the Upload Plugin screen.

Once installed you will need to change the version number to 0 and comment out the code. After doing this you can activate the plugin, but you can leave it disabled. Set it to Enable auto-updates in the Plugins page.

If the test plugin is active and if the Rollback works, your site should not show a WSOD after the auto-update as the previous, commented plugin will still be the active plugin. You will still show a plugin update.

Plugins bulk update alphabetically based on the slug. Any plugin supposed to update after the fatal will not receive an auto-update until the fatal is fixed.

An email will be sent to the site admin upon an auto-update failure.

rollback-auto-update's People

Contributors

afragen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.