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:
parent
5ea061ef8d
commit
93d2e831cb
|
@ -1366,7 +1366,7 @@ themes.view.Installer = themes.view.Appearance.extend({
|
||||||
this.sort( sort );
|
this.sort( sort );
|
||||||
|
|
||||||
// Trigger a router.naviagte update
|
// Trigger a router.naviagte update
|
||||||
themes.router.navigate( themes.router.baseUrl( '?sort=' + sort ) );
|
themes.router.navigate( themes.router.baseUrl( '?browse=' + sort ) );
|
||||||
},
|
},
|
||||||
|
|
||||||
sort: function( sort ) {
|
sort: function( sort ) {
|
||||||
|
@ -1528,7 +1528,7 @@ themes.view.Installer = themes.view.Appearance.extend({
|
||||||
themes.InstallerRouter = Backbone.Router.extend({
|
themes.InstallerRouter = Backbone.Router.extend({
|
||||||
routes: {
|
routes: {
|
||||||
'theme-install.php?theme=:slug': 'preview',
|
'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?upload': 'upload',
|
||||||
'theme-install.php?search=:query': 'search',
|
'theme-install.php?search=:query': 'search',
|
||||||
'': 'sort'
|
'': 'sort'
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue