Ticket #35564: 35564.patch
File 35564.patch, 1.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/inline-edit-post.js
122 122 }, 123 123 124 124 edit : function(id) { 125 var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format,f, val, pw;125 var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, f, val, pw; 126 126 t.revert(); 127 127 128 128 if ( typeof(id) === 'object' ) { … … 150 150 $('label.inline-edit-author', editRow).hide(); 151 151 } 152 152 153 // hide unsupported formats, but leave the current format alone154 cur_format = $('.post_format', rowData).text();155 $('option.unsupported', editRow).each(function() {156 var $this = $(this);157 if ( $this.val() !== cur_format ) {158 $this.remove();159 }160 });161 162 153 for ( f = 0; f < fields.length; f++ ) { 163 154 val = $('.'+fields[f], rowData); 164 155 // Deal with Twemoji