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:
Andrew Nacin 2014-03-12 00:28:26 +00:00
parent f3629139a5
commit 3a126c0452

View File

@ -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' )
});
}
});