Repository navigation
Commit 033973e
Site editor: preserve non-global styles in pattern previews (#77957)
PR #73952 replaced settings.styles with the output of generateGlobalStyles,
which only emits styles tagged isGlobalStyles: true, dropping non-global
styles such as those registered via add_editor_style(). PR #74088 restored
them for the site editor canvas; apply the same isGlobalStyles filter
pattern in usePatternSettings so add_editor_style output reappears in
pattern previews.
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: Azragh <azragh@git.wordpress.org>1 parent b9757cd commit 033973e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
0 commit comments