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/clone/wp-inclu.../js
File: media-editor.js
html: wp.media.string.link( embed ),
[1000] Fix | Delete
post_id: wp.media.view.settings.post.id
[1001] Fix | Delete
});
[1002] Fix | Delete
}
[1003] Fix | Delete
},
[1004] Fix | Delete
/**
[1005] Fix | Delete
* Open a workflow
[1006] Fix | Delete
*
[1007] Fix | Delete
* @param {string} [id=undefined] Optional. A slug used to identify the workflow.
[1008] Fix | Delete
* @param {Object} [options={}]
[1009] Fix | Delete
*
[1010] Fix | Delete
* @this wp.media.editor
[1011] Fix | Delete
*
[1012] Fix | Delete
* @return {wp.media.view.MediaFrame}
[1013] Fix | Delete
*/
[1014] Fix | Delete
open: function( id, options ) {
[1015] Fix | Delete
var workflow;
[1016] Fix | Delete
[1017] Fix | Delete
options = options || {};
[1018] Fix | Delete
[1019] Fix | Delete
id = this.id( id );
[1020] Fix | Delete
this.activeEditor = id;
[1021] Fix | Delete
[1022] Fix | Delete
workflow = this.get( id );
[1023] Fix | Delete
[1024] Fix | Delete
// Redo workflow if state has changed.
[1025] Fix | Delete
if ( ! workflow || ( workflow.options && options.state !== workflow.options.state ) ) {
[1026] Fix | Delete
workflow = this.add( id, options );
[1027] Fix | Delete
}
[1028] Fix | Delete
[1029] Fix | Delete
wp.media.frame = workflow;
[1030] Fix | Delete
[1031] Fix | Delete
return workflow.open();
[1032] Fix | Delete
},
[1033] Fix | Delete
[1034] Fix | Delete
/**
[1035] Fix | Delete
* Bind click event for .insert-media using event delegation
[1036] Fix | Delete
*/
[1037] Fix | Delete
init: function() {
[1038] Fix | Delete
$(document.body)
[1039] Fix | Delete
.on( 'click.add-media-button', '.insert-media', function( event ) {
[1040] Fix | Delete
var elem = $( event.currentTarget ),
[1041] Fix | Delete
editor = elem.data('editor'),
[1042] Fix | Delete
options = {
[1043] Fix | Delete
frame: 'post',
[1044] Fix | Delete
state: 'insert',
[1045] Fix | Delete
title: wp.media.view.l10n.addMedia,
[1046] Fix | Delete
multiple: true
[1047] Fix | Delete
};
[1048] Fix | Delete
[1049] Fix | Delete
event.preventDefault();
[1050] Fix | Delete
[1051] Fix | Delete
if ( elem.hasClass( 'gallery' ) ) {
[1052] Fix | Delete
options.state = 'gallery';
[1053] Fix | Delete
options.title = wp.media.view.l10n.createGalleryTitle;
[1054] Fix | Delete
}
[1055] Fix | Delete
[1056] Fix | Delete
wp.media.editor.open( editor, options );
[1057] Fix | Delete
});
[1058] Fix | Delete
[1059] Fix | Delete
// Initialize and render the Editor drag-and-drop uploader.
[1060] Fix | Delete
new wp.media.view.EditorUploader().render();
[1061] Fix | Delete
}
[1062] Fix | Delete
};
[1063] Fix | Delete
[1064] Fix | Delete
_.bindAll( wp.media.editor, 'open' );
[1065] Fix | Delete
$( wp.media.editor.init );
[1066] Fix | Delete
}(jQuery, _));
[1067] Fix | Delete
[1068] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function