From 3a126c0452ea4b3af37800c36d86732b3a742c1b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 12 Mar 2014 00:28:26 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/theme.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index ce9a835e22..a82b76ad44 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -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' ) }); } });