Skip to content

Commit

Permalink
Add empty file to avoid fatals (#7936)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Karimov <[email protected]>
Co-authored-by: Brett Shumaker <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2023
1 parent 6f59377 commit f1cabba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/revert-file-needed-for-plugin-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: This is the file revert to avoid failures on plugin update. This is a temporary solution. Both removal & revert happen on develop meaning there is no change to the outside world.


16 changes: 16 additions & 0 deletions includes/admin/class-wc-rest-upe-flag-toggle-controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Class WC_REST_UPE_Flag_Toggle_Controller
*
* @package WooCommerce\Payments\Admin
*/

/**
* REST controller for UPE feature flag. Needs to stay in the codebase to avoid error on plugin update for versions 6.9.2 or earlier.
*/
class WC_REST_UPE_Flag_Toggle_Controller extends WP_REST_Controller {
/**
* Register routes.
*/
public function register_routes() {}
}

0 comments on commit f1cabba

Please sign in to comment.