Merge and update variable declarations. fixes #19176.
git-svn-id: https://develop.svn.wordpress.org/trunk@19205 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0b5117da6a
commit
611a6118c9
@ -123,7 +123,7 @@ inlineEditPost = {
|
||||
},
|
||||
|
||||
edit : function(id) {
|
||||
var t = this, fields, editRow, rowData, cats, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
|
||||
var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f;
|
||||
t.revert();
|
||||
|
||||
if ( typeof(id) == 'object' )
|
||||
@ -152,14 +152,14 @@ inlineEditPost = {
|
||||
}
|
||||
|
||||
// hide unsupported formats, but leave the current format alone
|
||||
var cur_format = $('.post_format', rowData).text();
|
||||
cur_format = $('.post_format', rowData).text();
|
||||
$('option.unsupported', editRow).each(function() {
|
||||
var $this = $(this);
|
||||
if ( $this.val() != cur_format )
|
||||
$this.remove();
|
||||
});
|
||||
|
||||
for ( var f = 0; f < fields.length; f++ ) {
|
||||
for ( f = 0; f < fields.length; f++ ) {
|
||||
$(':input[name="' + fields[f] + '"]', editRow).val( $('.'+fields[f], rowData).text() );
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -345,7 +345,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407', 1 );
|
||||
|
||||
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20110919', 1 );
|
||||
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20111107', 1 );
|
||||
$scripts->add_script_data( 'inline-edit-post', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.'),
|
||||
'ntdeltitle' => __('Remove From Bulk Edit'),
|
||||
|
Loading…
Reference in New Issue
Block a user