mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-28 19:08:28 +00:00
Quick/Bulk Edit: Remove a no more used jQuery loop for unsupported post formats.
See #23426. See #24096. Fixes #35564. Built from https://develop.svn.wordpress.org/trunk@36375 git-svn-id: http://core.svn.wordpress.org/trunk@36342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dc343e41fa
commit
496bde4e77
@ -122,7 +122,7 @@ inlineEditPost = {
|
||||
},
|
||||
|
||||
edit : function(id) {
|
||||
var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f, val, pw;
|
||||
var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, f, val, pw;
|
||||
t.revert();
|
||||
|
||||
if ( typeof(id) === 'object' ) {
|
||||
@ -150,15 +150,6 @@ inlineEditPost = {
|
||||
$('label.inline-edit-author', editRow).hide();
|
||||
}
|
||||
|
||||
// hide unsupported formats, but leave the current format alone
|
||||
cur_format = $('.post_format', rowData).text();
|
||||
$('option.unsupported', editRow).each(function() {
|
||||
var $this = $(this);
|
||||
if ( $this.val() !== cur_format ) {
|
||||
$this.remove();
|
||||
}
|
||||
});
|
||||
|
||||
for ( f = 0; f < fields.length; f++ ) {
|
||||
val = $('.'+fields[f], rowData);
|
||||
// Deal with Twemoji
|
||||
|
2
wp-admin/js/inline-edit-post.min.js
vendored
2
wp-admin/js/inline-edit-post.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.5-alpha-36374';
|
||||
$wp_version = '4.5-alpha-36375';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user