WordPress.org

Make WordPress Core

Changeset 38711


Ignore:
Timestamp:
10/03/16 18:38:43 (10 months ago)
Author:
obenland
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-lists.js

    r38599 r38711  
    790790        var $list = this; 
    791791 
    792         $list.wpList.process = function() { 
    793             $list.each( function( index, element ) { 
     792        $list.wpList.process = function( element ) { 
     793            $list.each( function() { 
    794794                this.wpList.process( element ); 
    795795            } ); 
Note: See TracChangeset for help on using the changeset viewer.