File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
packages/editor/src/components/global-styles-provider Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change
1
+ https://github.com/WordPress/wordpress-develop/pull/7661
2
+
3
+ * https://github.com/WordPress/gutenberg/pull/66468
Original file line number Diff line number Diff line change @@ -55,16 +55,12 @@ function useGlobalStylesUserConfig() {
55
55
const _globalStylesId =
56
56
select ( coreStore ) . __experimentalGetCurrentGlobalStylesId ( ) ;
57
57
58
+ let record ;
59
+
58
60
// We want the global styles ID request to finish before triggering
59
61
// the OPTIONS request for user capabilities, otherwise it will
60
62
// fetch `/wp/v2/global-styles` instead of
61
63
// `/wp/v2/global-styles/{id}`!
62
- if ( ! _globalStylesId ) {
63
- return { isReady : false } ;
64
- }
65
-
66
- let record ;
67
-
68
64
// Please adjust the preloaded requests if this changes!
69
65
const userCanEditGlobalStyles = _globalStylesId
70
66
? canUser ( 'update' , {
You can’t perform that action at this time.
0 commit comments