File not found error during plugin upgrades #6304
Labels
category: core
WC Payments core related issues, where it’s obvious.
focus: woopay
type: bug
The issue is a confirmed bug.
Describe the bug
When a file included in
init_rest_api
is removed, it results in a missing file error during the plugin upgrade process.This happens because
init_rest_api
of the the old version is invoked during the upgrade but the file it's trying to load is removed in the new version.To Reproduce
class-wc-rest-user-exists-controller.php
Actual behavior
Error shown when upgrading the plugin
Screenshots
Expected behavior
No errors should be printed
Additional context
Slack thread: p1684148049557989-slack-CGGCLBN58
Related: #6303
The text was updated successfully, but these errors were encountered: