WordPress.org

Make WordPress Core

Changeset 41337


Ignore:
Timestamp:
09/05/2017 05:25:23 PM (2 years ago)
Author:
afercia
Message:

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

Props boonebgorges.
Fixes #41803.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r40824 r41337  
    106106        this.searchContainer
    107107            .append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
    108             .append( view.el );
     108            .append( view.el )
     109            .on( 'submit', function( event ) {
     110                event.preventDefault();
     111            });
    109112    },
    110113
Note: See TracChangeset for help on using the changeset viewer.