Themes: Open preview when requesting a single theme in the installer.

Props kraftner, obenland.
Fixes #28735.


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


git-svn-id: http://core.svn.wordpress.org/trunk@33617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-08-19 18:54:27 +00:00
parent a32d83586e
commit 2849e2c5e9
3 changed files with 7 additions and 2 deletions

View File

@ -454,6 +454,8 @@ themes.view.Theme = wp.Backbone.View.extend({
var self = this,
current, preview;
event = event || window.event;
// Bail if the user scrolled on a touch device
if ( this.touchDrag === true ) {
return this.touchDrag = false;
@ -1658,6 +1660,9 @@ themes.RunInstaller = {
themes.router.on( 'route:preview', function( slug ) {
request.theme = slug;
self.view.collection.query( request );
self.view.collection.once( 'update', function() {
self.view.view.theme.preview();
});
});
// Handles sorting / browsing routes

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33648';
$wp_version = '4.4-alpha-33650';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.