You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Handles compatibility when updating from pre-v1.20.0 versions of WPGraphQL.
25
-
*
26
-
* @todo Remove this function in v2.0.0, when the default value for `query_analyzer_enabled` is set to `true`.
27
-
*/
28
-
functiongraphql_migrate_1_20_0(): void {
29
-
// If the version is already set, we don't need to do anything.
30
-
$version = get_option( 'wp_graphql_version' );
31
-
if ( ! $version ) {
32
-
return;
33
-
}
34
-
35
-
// If the previous version is higher than 1.20.0, we don't need to do anything.
36
-
if ( version_compare( $version, '1.20.0', '>=' ) ) {
37
-
return;
38
-
}
39
-
40
-
/**
41
-
* Set `query_analyzer_enabled` to `true` for preexisting installs.
42
-
*
43
-
* This is to prevent breaking changes in caching solutions that rely on the Query Analyzer, but aren't insuring that the `graphql_should_analyze_queries` filter is set to true.
0 commit comments