Use correct variable in themes JS, fixes themes.php.

props SergeyBiryukov.
fixes #27360.

Built from https://develop.svn.wordpress.org/trunk@27509


git-svn-id: http://core.svn.wordpress.org/trunk@27352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-12 00:29:15 +00:00
parent cc7f0b61ec
commit 8e6ec4f72c
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ themes.Model = Backbone.Model.extend({
this.set({ this.set({
installURI: install, installURI: install,
previewURI: preview, previewURI: preview,
id: this.get( 'slug' ) // slug is for installation, id is for existing.
id: this.get( 'slug' ) || this.get( 'id' )
}); });
} }
}); });

File diff suppressed because one or more lines are too long