mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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 );
|
||||
|
||||
// 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'
|
||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user