Changeset 48037
- Timestamp:
- 06/13/2020 02:24:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/theme.js
r47924 r48037 29 29 var description; 30 30 31 // If the theme is already installed, set an attribute. 32 if ( _.indexOf( themes.data.installedThemes, this.get( 'slug' ) ) !== -1 ) { 33 this.set({ installed: true }); 34 } 35 36 // If the theme is active, set an attribute. 37 if ( themes.data.activeTheme === this.get( 'slug' ) ) { 38 this.set({ active: true }); 31 if ( this.get( 'slug' ) ) { 32 // If the theme is already installed, set an attribute. 33 if ( _.indexOf( themes.data.installedThemes, this.get( 'slug' ) ) !== -1 ) { 34 this.set({ installed: true }); 35 } 36 37 // If the theme is active, set an attribute. 38 if ( themes.data.activeTheme === this.get( 'slug' ) ) { 39 this.set({ active: true }); 40 } 39 41 } 40 42
Note: See TracChangeset
for help on using the changeset viewer.