WordPress.org

Make WordPress Core

Changeset 42223 for branches/4.9


Ignore:
Timestamp:
11/24/2017 02:55:55 AM (4 years ago)
Author:
dd32
Message:

Themes: Prevent JS error on Themes admin screen when only one theme is installed.

Amends [42029].
Props chetan200891, afercia.
See #42348, westonruter.
Merges [42222] to the 4.9 branch.
Fixes #42673.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/js/theme.js

    r42029 r42223  
    103103            parent: this
    104104        });
    105         self.searchView = view;
     105        self.SearchView = view;
    106106
    107107        // Render and append after screen title
     
    14491449
    14501450        // Start debouncing user searches after Backbone.history.start().
    1451         this.view.searchView.doSearch = _.debounce( this.view.searchView.doSearch, 500 );
     1451        this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 );
    14521452    },
    14531453
     
    19251925
    19261926        // Start debouncing user searches after Backbone.history.start().
    1927         this.view.searchView.doSearch = _.debounce( this.view.searchView.doSearch, 500 );
     1927        this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 );
    19281928    },
    19291929
Note: See TracChangeset for help on using the changeset viewer.