WordPress.org

Make WordPress Core

Changeset 36375


Ignore:
Timestamp:
01/21/2016 10:49:43 PM (4 years ago)
Author:
afercia
Message:

Quick/Bulk Edit: Remove a no more used jQuery loop for unsupported post formats.

See #23426.
See #24096.
Fixes #35564.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/inline-edit-post.js

    r36303 r36375  
    123123
    124124    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;
    126126        t.revert();
    127127
     
    150150            $('label.inline-edit-author', editRow).hide();
    151151        }
    152 
    153         // hide unsupported formats, but leave the current format alone
    154         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         });
    161152
    162153        for ( f = 0; f < fields.length; f++ ) {
Note: See TracChangeset for help on using the changeset viewer.