Make WordPress Core


Ignore:
Timestamp:
11/07/2011 05:45:24 PM (13 years ago)
Author:
nacin
Message:

Merge and update variable declarations. fixes #19176.

File:
1 edited

Legend:

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

    r19204 r19205  
    124124
    125125    edit : function(id) {
    126         var t = this, fields, editRow, rowData, cats, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
     126        var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f;
    127127        t.revert();
    128128
     
    153153
    154154        // hide unsupported formats, but leave the current format alone
    155         var cur_format = $('.post_format', rowData).text();
     155        cur_format = $('.post_format', rowData).text();
    156156        $('option.unsupported', editRow).each(function() {
    157157            var $this = $(this);
     
    160160        });
    161161
    162         for ( var f = 0; f < fields.length; f++ ) {
     162        for ( f = 0; f < fields.length; f++ ) {
    163163            $(':input[name="' + fields[f] + '"]', editRow).val( $('.'+fields[f], rowData).text() );
    164164        }
Note: See TracChangeset for help on using the changeset viewer.