mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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:
parent
6335e08ab2
commit
e0669dc255
@ -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 );
|
||||
} );
|
||||
};
|
||||
|
2
wp-includes/js/wp-lists.min.js
vendored
2
wp-includes/js/wp-lists.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user