Skip to content

Commit ac0742e

Browse files
committed
default null
1 parent 9096c26 commit ac0742e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dist/cms.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function usesBlockTheme() {
1313
*/
1414
function getWordPressTheme() {
1515
const theme = {
16-
theme: '',
17-
child_theme: '',
16+
theme: null,
17+
child_theme: null,
1818
};
1919
try {
2020
const bodyClass = document.body.classList;
@@ -23,6 +23,7 @@ function getWordPressTheme() {
2323

2424
if ( parentTheme ) {
2525
theme.theme = parentTheme.replace( 'wp-theme-', '' );
26+
theme.child_theme = '';
2627
}
2728

2829
const childTheme = Array.from( bodyClass ).find( c => c.startsWith( 'wp-child-theme-' ) );

0 commit comments

Comments
 (0)