Theme Installer: Use 'browse' instead of 'sort' for routes.

see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@28035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
nacin 2014-04-08 04:12:02 +00:00
parent 0cff2558aa
commit 1478afb236

View File

@ -1366,7 +1366,7 @@ themes.view.Installer = themes.view.Appearance.extend({
this.sort( sort );
// Trigger a router.naviagte update
themes.router.navigate( themes.router.baseUrl( '?sort=' + sort ) );
themes.router.navigate( themes.router.baseUrl( '?browse=' + sort ) );
},
sort: function( sort ) {
@ -1528,7 +1528,7 @@ themes.view.Installer = themes.view.Appearance.extend({
themes.InstallerRouter = Backbone.Router.extend({
routes: {
'theme-install.php?theme=:slug': 'preview',
'theme-install.php?sort=:sort': 'sort',
'theme-install.php?browse=:sort': 'sort',
'theme-install.php?upload': 'upload',
'theme-install.php?search=:query': 'search',
'': 'sort'