wpLists: Pass the current element to process()
to properly register event handlers.
Fixes a bug where new categories couldn't be added from the post edit screen. Introduced in [38599]. Props dlh. Fixes #38174. git-svn-id: https://develop.svn.wordpress.org/trunk@38711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab087dadfc
commit
9cfa200891
@ -789,8 +789,8 @@ wpList = {
|
||||
init: function() {
|
||||
var $list = this;
|
||||
|
||||
$list.wpList.process = function() {
|
||||
$list.each( function( index, element ) {
|
||||
$list.wpList.process = function( element ) {
|
||||
$list.each( function() {
|
||||
this.wpList.process( element );
|
||||
} );
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user