We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5275220 commit d54d4d0Copy full SHA for d54d4d0
src/Admin/Updates/Updates.php
@@ -136,8 +136,12 @@ public function register_assets(): void {
136
* Disables plugins that don't meet the minimum `Requires WPGraphQL` version.
137
*/
138
public function disable_incompatible_plugins(): void {
139
+
140
+ // Get the plugin data.
141
+ $plugin_data = get_plugin_data( WPGRAPHQL_PLUGIN_DIR . '/wp-graphql.php' );
142
143
// Initialize the Update Checker.
- $update_checker = new UpdateChecker( (object) get_plugins()['wp-graphql/wp-graphql.php'] );
144
+ $update_checker = new UpdateChecker( (object) $plugin_data );
145
146
// Get the incompatible plugins.
147
$incompatible_plugins = $update_checker->get_incompatible_plugins( WPGRAPHQL_VERSION, true );
0 commit comments