Themes: Prevent the Themes search field default action after [40572].

Props boonebgorges.
Fixes #41803.

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


git-svn-id: http://core.svn.wordpress.org/trunk@41170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2017-09-05 17:26:45 +00:00
parent cdccce5164
commit 4c60dfa69b
3 changed files with 6 additions and 3 deletions

View File

@ -105,7 +105,10 @@ themes.view.Appearance = wp.Backbone.View.extend({
view.render();
this.searchContainer
.append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( view.el );
.append( view.el )
.on( 'submit', function( event ) {
event.preventDefault();
});
},
// Checks when the user gets close to the bottom

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41335';
$wp_version = '4.9-alpha-41337';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.