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

see #27055.

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


git-svn-id: http://core.svn.wordpress.org/trunk@27865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-04-08 04:13:16 +00:00
parent 5ea061ef8d
commit 93d2e831cb
2 changed files with 3 additions and 3 deletions

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'

File diff suppressed because one or more lines are too long