JezK
Edit File: GraphQLController.php
<?php /** * GraphQL controller of the dual API proof of concept (compatibility stub). */ declare(strict_types=1); namespace Automattic\WooCommerce\Internal\Api\Autogenerated; defined( 'ABSPATH' ) || exit; /** * Compatibility stub for the generated GraphQL controller of the dual API proof of concept. * * The dual (code + GraphQL) API engine and its proof-of-concept core API were removed from * WooCommerce core in 11.2 (the engine now lives in the WooCommerce Dual API plugin). This * empty stub stays so that, during an in-place update from 10.9-11.1, the still-resident * `Main::handle_rest_api_init_for_core()` of the old version can instantiate the class it * names instead of fataling on the deleted file when the REST server boots later in the same * request (see the wc-admin settings preload on `admin_print_footer_scripts`). It registers * nothing. * * The old code only reaches this class when the hidden `dual_code_graphql_api` feature flag * is on, which experimenters enabled through `wp option update`. * * @deprecated 11.2.0 */ class GraphQLController { /** * Register the REST route. Intentionally a no-op. */ public function register(): void {} }