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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@38654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2016-10-03 18:39:30 +00:00
parent 6335e08ab2
commit e0669dc255
3 changed files with 4 additions and 4 deletions

View File

@ -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 );
} );
};

File diff suppressed because one or more lines are too long

View File

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