Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-admin/js
File: inline-edit-post.js
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
[500] Fix | Delete
[501] Fix | Delete
if (r) {
[502] Fix | Delete
if ( -1 !== r.indexOf( '<tr' ) ) {
[503] Fix | Delete
$(inlineEditPost.what+id).siblings('tr.hidden').addBack().remove();
[504] Fix | Delete
$('#edit-'+id).before(r).remove();
[505] Fix | Delete
$( inlineEditPost.what + id ).hide().fadeIn( 400, function() {
[506] Fix | Delete
// Move focus back to the Quick Edit button. $( this ) is the row being animated.
[507] Fix | Delete
$( this ).find( '.editinline' )
[508] Fix | Delete
.attr( 'aria-expanded', 'false' )
[509] Fix | Delete
.trigger( 'focus' );
[510] Fix | Delete
wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
[511] Fix | Delete
});
[512] Fix | Delete
} else {
[513] Fix | Delete
r = r.replace( /<.[^<>]*?>/g, '' );
[514] Fix | Delete
$errorNotice.removeClass( 'hidden' );
[515] Fix | Delete
$error.html( r );
[516] Fix | Delete
wp.a11y.speak( $error.text() );
[517] Fix | Delete
}
[518] Fix | Delete
} else {
[519] Fix | Delete
$errorNotice.removeClass( 'hidden' );
[520] Fix | Delete
$error.text( wp.i18n.__( 'Error while saving the changes.' ) );
[521] Fix | Delete
wp.a11y.speak( wp.i18n.__( 'Error while saving the changes.' ) );
[522] Fix | Delete
}
[523] Fix | Delete
},
[524] Fix | Delete
'html');
[525] Fix | Delete
[526] Fix | Delete
// Prevent submitting the form when pressing Enter on a focused field.
[527] Fix | Delete
return false;
[528] Fix | Delete
},
[529] Fix | Delete
[530] Fix | Delete
/**
[531] Fix | Delete
* Hides and empties the Quick Edit and/or Bulk Edit windows.
[532] Fix | Delete
*
[533] Fix | Delete
* @since 2.7.0
[534] Fix | Delete
*
[535] Fix | Delete
* @memberof inlineEditPost
[536] Fix | Delete
*
[537] Fix | Delete
* @return {boolean} Always returns false.
[538] Fix | Delete
*/
[539] Fix | Delete
revert : function(){
[540] Fix | Delete
var $tableWideFat = $( '.widefat' ),
[541] Fix | Delete
id = $( '.inline-editor', $tableWideFat ).attr( 'id' );
[542] Fix | Delete
[543] Fix | Delete
if ( id ) {
[544] Fix | Delete
$( '.spinner', $tableWideFat ).removeClass( 'is-active' );
[545] Fix | Delete
[546] Fix | Delete
if ( 'bulk-edit' === id ) {
[547] Fix | Delete
[548] Fix | Delete
// Hide the bulk editor.
[549] Fix | Delete
$( '#bulk-edit', $tableWideFat ).removeClass( 'inline-editor' ).hide().siblings( '.hidden' ).remove();
[550] Fix | Delete
$('#bulk-titles').empty();
[551] Fix | Delete
[552] Fix | Delete
// Store the empty bulk editor in a hidden element.
[553] Fix | Delete
$('#inlineedit').append( $('#bulk-edit') );
[554] Fix | Delete
[555] Fix | Delete
// Move focus back to the Bulk Action button that was activated.
[556] Fix | Delete
$( '#' + inlineEditPost.whichBulkButtonId ).trigger( 'focus' );
[557] Fix | Delete
} else {
[558] Fix | Delete
[559] Fix | Delete
// Remove both the inline-editor and its hidden tr siblings.
[560] Fix | Delete
$('#'+id).siblings('tr.hidden').addBack().remove();
[561] Fix | Delete
id = id.substr( id.lastIndexOf('-') + 1 );
[562] Fix | Delete
[563] Fix | Delete
// Show the post row and move focus back to the Quick Edit button.
[564] Fix | Delete
$( this.what + id ).show().find( '.editinline' )
[565] Fix | Delete
.attr( 'aria-expanded', 'false' )
[566] Fix | Delete
.trigger( 'focus' );
[567] Fix | Delete
}
[568] Fix | Delete
}
[569] Fix | Delete
[570] Fix | Delete
return false;
[571] Fix | Delete
},
[572] Fix | Delete
[573] Fix | Delete
/**
[574] Fix | Delete
* Gets the ID for a the post that you want to quick edit from the row in the quick
[575] Fix | Delete
* edit table.
[576] Fix | Delete
*
[577] Fix | Delete
* @since 2.7.0
[578] Fix | Delete
*
[579] Fix | Delete
* @memberof inlineEditPost
[580] Fix | Delete
*
[581] Fix | Delete
* @param {Object} o DOM row object to get the ID for.
[582] Fix | Delete
* @return {string} The post ID extracted from the table row in the object.
[583] Fix | Delete
*/
[584] Fix | Delete
getId : function(o) {
[585] Fix | Delete
var id = $(o).closest('tr').attr('id'),
[586] Fix | Delete
parts = id.split('-');
[587] Fix | Delete
return parts[parts.length - 1];
[588] Fix | Delete
}
[589] Fix | Delete
};
[590] Fix | Delete
[591] Fix | Delete
$( function() { inlineEditPost.init(); } );
[592] Fix | Delete
[593] Fix | Delete
// Show/hide locks on posts.
[594] Fix | Delete
$( function() {
[595] Fix | Delete
[596] Fix | Delete
// Set the heartbeat interval to 15 seconds.
[597] Fix | Delete
if ( typeof wp !== 'undefined' && wp.heartbeat ) {
[598] Fix | Delete
wp.heartbeat.interval( 15 );
[599] Fix | Delete
}
[600] Fix | Delete
}).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
[601] Fix | Delete
var locked = data['wp-check-locked-posts'] || {};
[602] Fix | Delete
[603] Fix | Delete
$('#the-list tr').each( function(i, el) {
[604] Fix | Delete
var key = el.id, row = $(el), lock_data, avatar;
[605] Fix | Delete
[606] Fix | Delete
if ( locked.hasOwnProperty( key ) ) {
[607] Fix | Delete
if ( ! row.hasClass('wp-locked') ) {
[608] Fix | Delete
lock_data = locked[key];
[609] Fix | Delete
row.find('.column-title .locked-text').text( lock_data.text );
[610] Fix | Delete
row.find('.check-column checkbox').prop('checked', false);
[611] Fix | Delete
[612] Fix | Delete
if ( lock_data.avatar_src ) {
[613] Fix | Delete
avatar = $( '<img />', {
[614] Fix | Delete
'class': 'avatar avatar-18 photo',
[615] Fix | Delete
width: 18,
[616] Fix | Delete
height: 18,
[617] Fix | Delete
alt: '',
[618] Fix | Delete
src: lock_data.avatar_src,
[619] Fix | Delete
srcset: lock_data.avatar_src_2x ? lock_data.avatar_src_2x + ' 2x' : undefined
[620] Fix | Delete
} );
[621] Fix | Delete
row.find('.column-title .locked-avatar').empty().append( avatar );
[622] Fix | Delete
}
[623] Fix | Delete
row.addClass('wp-locked');
[624] Fix | Delete
}
[625] Fix | Delete
} else if ( row.hasClass('wp-locked') ) {
[626] Fix | Delete
row.removeClass( 'wp-locked' ).find( '.locked-info span' ).empty();
[627] Fix | Delete
}
[628] Fix | Delete
});
[629] Fix | Delete
}).on( 'heartbeat-send.wp-check-locked-posts', function( e, data ) {
[630] Fix | Delete
var check = [];
[631] Fix | Delete
[632] Fix | Delete
$('#the-list tr').each( function(i, el) {
[633] Fix | Delete
if ( el.id ) {
[634] Fix | Delete
check.push( el.id );
[635] Fix | Delete
}
[636] Fix | Delete
});
[637] Fix | Delete
[638] Fix | Delete
if ( check.length ) {
[639] Fix | Delete
data['wp-check-locked-posts'] = check;
[640] Fix | Delete
}
[641] Fix | Delete
});
[642] Fix | Delete
[643] Fix | Delete
})( jQuery, window.wp );
[644] Fix | Delete
[645] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function