From 710f2593cc4c8b08f771881af71ddbe2a1004d17 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 21 Jan 2016 22:49:43 +0000 Subject: [PATCH] Quick/Bulk Edit: Remove a no more used jQuery loop for unsupported post formats. See #23426. See #24096. Fixes #35564. git-svn-id: https://develop.svn.wordpress.org/trunk@36375 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/inline-edit-post.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wp-admin/js/inline-edit-post.js b/src/wp-admin/js/inline-edit-post.js index fdc1d853bf..3a65805e3e 100644 --- a/src/wp-admin/js/inline-edit-post.js +++ b/src/wp-admin/js/inline-edit-post.js @@ -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