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 9096c26 commit ac0742eCopy full SHA for ac0742e
dist/cms.js
@@ -13,8 +13,8 @@ function usesBlockTheme() {
13
*/
14
function getWordPressTheme() {
15
const theme = {
16
- theme: '',
17
- child_theme: '',
+ theme: null,
+ child_theme: null,
18
};
19
try {
20
const bodyClass = document.body.classList;
@@ -23,6 +23,7 @@ function getWordPressTheme() {
23
24
if ( parentTheme ) {
25
theme.theme = parentTheme.replace( 'wp-theme-', '' );
26
+ theme.child_theme = '';
27
}
28
29
const childTheme = Array.from( bodyClass ).find( c => c.startsWith( 'wp-child-theme-' ) );
0 commit comments