PluginProbe
WooCommerce / 11.1.0-rc.2
WooCommerce v11.1.0-rc.2
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / src / Admin / API / Settings.php
Settings.php
31 lines 688 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * REST API Settings Controller (compatibility stub).
4 *
5 * @package WooCommerce\Admin\API
6 */
7
8 declare( strict_types = 1 );
9
10 namespace Automattic\WooCommerce\Admin\API;
11
12 defined( 'ABSPATH' ) || exit;
13
14 /**
15 * Settings controller.
16 *
17 * The real controller was removed in 10.9 with the settings editor. This empty stub stays so an
18 * in-memory 10.8 controller list, still naming this class while the files are swapped to 10.9
19 * during an update, can instantiate it instead of fataling on the deleted file. It registers
20 * nothing.
21 *
22 * @deprecated 10.9.0
23 */
24 class Settings {
25
26 /**
27 * Register routes. Intentionally a no-op.
28 */
29 public function register_routes(): void {}
30 }
31