Use correct variable in themes JS, fixes themes.php.
props SergeyBiryukov. fixes #27360. git-svn-id: https://develop.svn.wordpress.org/trunk@27509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f3629139a5
commit
3a126c0452
@ -47,7 +47,8 @@ themes.Model = Backbone.Model.extend({
|
||||
this.set({
|
||||
installURI: install,
|
||||
previewURI: preview,
|
||||
id: this.get( 'slug' )
|
||||
// slug is for installation, id is for existing.
|
||||
id: this.get( 'slug' ) || this.get( 'id' )
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user