{"id":112577,"date":"2024-04-19T17:21:37","date_gmt":"2024-04-19T17:21:37","guid":{"rendered":"https:\/\/make.wordpress.org\/core\/?p=112577"},"modified":"2024-04-20T18:30:59","modified_gmt":"2024-04-20T18:30:59","slug":"merge-proposal-rollback-auto-update","status":"publish","type":"post","link":"https:\/\/make.wordpress.org\/core\/2024\/04\/19\/merge-proposal-rollback-auto-update\/","title":{"rendered":"Merge Proposal: Rollback Auto-Update"},"content":{"rendered":"

Background<\/strong><\/h2>\n\n\n\n

The biggest risk for a site owner when updating plugins is encountering a PHPPHP<\/span> The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher<\/span><\/span><\/span> fatal error that crashes their website. While CoreCore<\/span> Core is the set of software required to run WordPress. The Core Development Team builds WordPress.<\/span><\/span><\/span> updates are protected by automatic rollbacks since WordPress 3.7 (#22704<\/a>), no such protection for plugins was added. Although fatal error protection and recovery mode were added in WordPress 5.2, it requires manual intervention from an administrator, and ideally WordPress should be able to recover on its own in a similar way that Core does. The Upgrade\/Install team began exploring rollbacks for pluginPlugin<\/span> A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https:\/\/wordpress.org\/plugins\/ or can be cost-based plugin from a third-party<\/span><\/span><\/span> updates.<\/p>\n\n\n\n

Rollbacks for plugin updates comprises three features:<\/p>\n\n\n\n

    \n
  1. move_dir()<\/a> \u2013 Introduced in WordPress 6.2 (#57375<\/a>)<\/li>\n\n\n\n
  2. Rollback for plugin\/theme update failures when updating manually \u2013 Introduced in WordPress 6.3 (#51857<\/a>)<\/li>\n\n\n\n
  3. Rollback for plugin auto-updates when failures are encountered \u2013 Covered by this proposal (#58281<\/a>)<\/li>\n<\/ol>\n\n\n\n

    Some background references<\/strong><\/h3>\n\n\n\n