From 2d4ea7845797af47d901bc009589d132e7b68997 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 16 Apr 2014 03:05:52 +0000 Subject: [PATCH] Theme Installer: Properly call router navigation. props gcorne. see #27055. git-svn-id: https://develop.svn.wordpress.org/trunk@28147 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 0b5232822e..77054b5cbf 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -1179,7 +1179,7 @@ themes.Router = Backbone.Router.extend({ navigate: function() { if ( Backbone.history._hasPushState ) { - Backbone.Router.navigate.apply( this, arguments ); + Backbone.Router.prototype.navigate.apply( this, arguments ); } } @@ -1582,7 +1582,7 @@ themes.InstallerRouter = Backbone.Router.extend({ navigate: function() { if ( Backbone.history._hasPushState ) { - Backbone.Router.navigate.apply( this, arguments ); + Backbone.Router.prototype.navigate.apply( this, arguments ); } } });