Edit File by line
/home/barbar84/public_h.../wp-inclu.../js
File: autosave.js
/**
[0] Fix | Delete
* @output wp-includes/js/autosave.js
[1] Fix | Delete
*/
[2] Fix | Delete
[3] Fix | Delete
/* global tinymce, wpCookies, autosaveL10n, switchEditors */
[4] Fix | Delete
// Back-compat.
[5] Fix | Delete
window.autosave = function() {
[6] Fix | Delete
return true;
[7] Fix | Delete
};
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* Adds autosave to the window object on dom ready.
[11] Fix | Delete
*
[12] Fix | Delete
* @since 3.9.0
[13] Fix | Delete
*
[14] Fix | Delete
* @param {jQuery} $ jQuery object.
[15] Fix | Delete
* @param {window} The window object.
[16] Fix | Delete
*
[17] Fix | Delete
*/
[18] Fix | Delete
( function( $, window ) {
[19] Fix | Delete
/**
[20] Fix | Delete
* Auto saves the post.
[21] Fix | Delete
*
[22] Fix | Delete
* @since 3.9.0
[23] Fix | Delete
*
[24] Fix | Delete
* @return {Object}
[25] Fix | Delete
* {{
[26] Fix | Delete
* getPostData: getPostData,
[27] Fix | Delete
* getCompareString: getCompareString,
[28] Fix | Delete
* disableButtons: disableButtons,
[29] Fix | Delete
* enableButtons: enableButtons,
[30] Fix | Delete
* local: ({hasStorage, getSavedPostData, save, suspend, resume}|*),
[31] Fix | Delete
* server: ({tempBlockSave, triggerSave, postChanged, suspend, resume}|*)
[32] Fix | Delete
* }}
[33] Fix | Delete
* The object with all functions for autosave.
[34] Fix | Delete
*/
[35] Fix | Delete
function autosave() {
[36] Fix | Delete
var initialCompareString,
[37] Fix | Delete
initialCompareData = {},
[38] Fix | Delete
lastTriggerSave = 0,
[39] Fix | Delete
$document = $( document );
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* Sets the initial compare data.
[43] Fix | Delete
*
[44] Fix | Delete
* @since 5.6.1
[45] Fix | Delete
*/
[46] Fix | Delete
function setInitialCompare() {
[47] Fix | Delete
initialCompareData = {
[48] Fix | Delete
post_title: $( '#title' ).val() || '',
[49] Fix | Delete
content: $( '#content' ).val() || '',
[50] Fix | Delete
excerpt: $( '#excerpt' ).val() || ''
[51] Fix | Delete
};
[52] Fix | Delete
[53] Fix | Delete
initialCompareString = getCompareString( initialCompareData );
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
/**
[57] Fix | Delete
* Returns the data saved in both local and remote autosave.
[58] Fix | Delete
*
[59] Fix | Delete
* @since 3.9.0
[60] Fix | Delete
*
[61] Fix | Delete
* @param {string} type The type of autosave either local or remote.
[62] Fix | Delete
*
[63] Fix | Delete
* @return {Object} Object containing the post data.
[64] Fix | Delete
*/
[65] Fix | Delete
function getPostData( type ) {
[66] Fix | Delete
var post_name, parent_id, data,
[67] Fix | Delete
time = ( new Date() ).getTime(),
[68] Fix | Delete
cats = [],
[69] Fix | Delete
editor = getEditor();
[70] Fix | Delete
[71] Fix | Delete
// Don't run editor.save() more often than every 3 seconds.
[72] Fix | Delete
// It is resource intensive and might slow down typing in long posts on slow devices.
[73] Fix | Delete
if ( editor && editor.isDirty() && ! editor.isHidden() && time - 3000 > lastTriggerSave ) {
[74] Fix | Delete
editor.save();
[75] Fix | Delete
lastTriggerSave = time;
[76] Fix | Delete
}
[77] Fix | Delete
[78] Fix | Delete
data = {
[79] Fix | Delete
post_id: $( '#post_ID' ).val() || 0,
[80] Fix | Delete
post_type: $( '#post_type' ).val() || '',
[81] Fix | Delete
post_author: $( '#post_author' ).val() || '',
[82] Fix | Delete
post_title: $( '#title' ).val() || '',
[83] Fix | Delete
content: $( '#content' ).val() || '',
[84] Fix | Delete
excerpt: $( '#excerpt' ).val() || ''
[85] Fix | Delete
};
[86] Fix | Delete
[87] Fix | Delete
if ( type === 'local' ) {
[88] Fix | Delete
return data;
[89] Fix | Delete
}
[90] Fix | Delete
[91] Fix | Delete
$( 'input[id^="in-category-"]:checked' ).each( function() {
[92] Fix | Delete
cats.push( this.value );
[93] Fix | Delete
});
[94] Fix | Delete
data.catslist = cats.join(',');
[95] Fix | Delete
[96] Fix | Delete
if ( post_name = $( '#post_name' ).val() ) {
[97] Fix | Delete
data.post_name = post_name;
[98] Fix | Delete
}
[99] Fix | Delete
[100] Fix | Delete
if ( parent_id = $( '#parent_id' ).val() ) {
[101] Fix | Delete
data.parent_id = parent_id;
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
if ( $( '#comment_status' ).prop( 'checked' ) ) {
[105] Fix | Delete
data.comment_status = 'open';
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
if ( $( '#ping_status' ).prop( 'checked' ) ) {
[109] Fix | Delete
data.ping_status = 'open';
[110] Fix | Delete
}
[111] Fix | Delete
[112] Fix | Delete
if ( $( '#auto_draft' ).val() === '1' ) {
[113] Fix | Delete
data.auto_draft = '1';
[114] Fix | Delete
}
[115] Fix | Delete
[116] Fix | Delete
return data;
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
/**
[120] Fix | Delete
* Concatenates the title, content and excerpt. This is used to track changes
[121] Fix | Delete
* when auto-saving.
[122] Fix | Delete
*
[123] Fix | Delete
* @since 3.9.0
[124] Fix | Delete
*
[125] Fix | Delete
* @param {Object} postData The object containing the post data.
[126] Fix | Delete
*
[127] Fix | Delete
* @return {string} A concatenated string with title, content and excerpt.
[128] Fix | Delete
*/
[129] Fix | Delete
function getCompareString( postData ) {
[130] Fix | Delete
if ( typeof postData === 'object' ) {
[131] Fix | Delete
return ( postData.post_title || '' ) + '::' + ( postData.content || '' ) + '::' + ( postData.excerpt || '' );
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
return ( $('#title').val() || '' ) + '::' + ( $('#content').val() || '' ) + '::' + ( $('#excerpt').val() || '' );
[135] Fix | Delete
}
[136] Fix | Delete
[137] Fix | Delete
/**
[138] Fix | Delete
* Disables save buttons.
[139] Fix | Delete
*
[140] Fix | Delete
* @since 3.9.0
[141] Fix | Delete
*
[142] Fix | Delete
* @return {void}
[143] Fix | Delete
*/
[144] Fix | Delete
function disableButtons() {
[145] Fix | Delete
$document.trigger('autosave-disable-buttons');
[146] Fix | Delete
[147] Fix | Delete
// Re-enable 5 sec later. Just gives autosave a head start to avoid collisions.
[148] Fix | Delete
setTimeout( enableButtons, 5000 );
[149] Fix | Delete
}
[150] Fix | Delete
[151] Fix | Delete
/**
[152] Fix | Delete
* Enables save buttons.
[153] Fix | Delete
*
[154] Fix | Delete
* @since 3.9.0
[155] Fix | Delete
*
[156] Fix | Delete
* @return {void}
[157] Fix | Delete
*/
[158] Fix | Delete
function enableButtons() {
[159] Fix | Delete
$document.trigger( 'autosave-enable-buttons' );
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
/**
[163] Fix | Delete
* Gets the content editor.
[164] Fix | Delete
*
[165] Fix | Delete
* @since 4.6.0
[166] Fix | Delete
*
[167] Fix | Delete
* @return {boolean|*} Returns either false if the editor is undefined,
[168] Fix | Delete
* or the instance of the content editor.
[169] Fix | Delete
*/
[170] Fix | Delete
function getEditor() {
[171] Fix | Delete
return typeof tinymce !== 'undefined' && tinymce.get('content');
[172] Fix | Delete
}
[173] Fix | Delete
[174] Fix | Delete
/**
[175] Fix | Delete
* Autosave in localStorage.
[176] Fix | Delete
*
[177] Fix | Delete
* @since 3.9.0
[178] Fix | Delete
*
[179] Fix | Delete
* @return {
[180] Fix | Delete
* {
[181] Fix | Delete
* hasStorage: *,
[182] Fix | Delete
* getSavedPostData: getSavedPostData,
[183] Fix | Delete
* save: save,
[184] Fix | Delete
* suspend: suspend,
[185] Fix | Delete
* resume: resume
[186] Fix | Delete
* }
[187] Fix | Delete
* }
[188] Fix | Delete
* The object with all functions for local storage autosave.
[189] Fix | Delete
*/
[190] Fix | Delete
function autosaveLocal() {
[191] Fix | Delete
var blog_id, post_id, hasStorage, intervalTimer,
[192] Fix | Delete
lastCompareString,
[193] Fix | Delete
isSuspended = false;
[194] Fix | Delete
[195] Fix | Delete
/**
[196] Fix | Delete
* Checks if the browser supports sessionStorage and it's not disabled.
[197] Fix | Delete
*
[198] Fix | Delete
* @since 3.9.0
[199] Fix | Delete
*
[200] Fix | Delete
* @return {boolean} True if the sessionStorage is supported and enabled.
[201] Fix | Delete
*/
[202] Fix | Delete
function checkStorage() {
[203] Fix | Delete
var test = Math.random().toString(),
[204] Fix | Delete
result = false;
[205] Fix | Delete
[206] Fix | Delete
try {
[207] Fix | Delete
window.sessionStorage.setItem( 'wp-test', test );
[208] Fix | Delete
result = window.sessionStorage.getItem( 'wp-test' ) === test;
[209] Fix | Delete
window.sessionStorage.removeItem( 'wp-test' );
[210] Fix | Delete
} catch(e) {}
[211] Fix | Delete
[212] Fix | Delete
hasStorage = result;
[213] Fix | Delete
return result;
[214] Fix | Delete
}
[215] Fix | Delete
[216] Fix | Delete
/**
[217] Fix | Delete
* Initializes the local storage.
[218] Fix | Delete
*
[219] Fix | Delete
* @since 3.9.0
[220] Fix | Delete
*
[221] Fix | Delete
* @return {boolean|Object} False if no sessionStorage in the browser or an Object
[222] Fix | Delete
* containing all postData for this blog.
[223] Fix | Delete
*/
[224] Fix | Delete
function getStorage() {
[225] Fix | Delete
var stored_obj = false;
[226] Fix | Delete
// Separate local storage containers for each blog_id.
[227] Fix | Delete
if ( hasStorage && blog_id ) {
[228] Fix | Delete
stored_obj = sessionStorage.getItem( 'wp-autosave-' + blog_id );
[229] Fix | Delete
[230] Fix | Delete
if ( stored_obj ) {
[231] Fix | Delete
stored_obj = JSON.parse( stored_obj );
[232] Fix | Delete
} else {
[233] Fix | Delete
stored_obj = {};
[234] Fix | Delete
}
[235] Fix | Delete
}
[236] Fix | Delete
[237] Fix | Delete
return stored_obj;
[238] Fix | Delete
}
[239] Fix | Delete
[240] Fix | Delete
/**
[241] Fix | Delete
* Sets the storage for this blog. Confirms that the data was saved
[242] Fix | Delete
* successfully.
[243] Fix | Delete
*
[244] Fix | Delete
* @since 3.9.0
[245] Fix | Delete
*
[246] Fix | Delete
* @return {boolean} True if the data was saved successfully, false if it wasn't saved.
[247] Fix | Delete
*/
[248] Fix | Delete
function setStorage( stored_obj ) {
[249] Fix | Delete
var key;
[250] Fix | Delete
[251] Fix | Delete
if ( hasStorage && blog_id ) {
[252] Fix | Delete
key = 'wp-autosave-' + blog_id;
[253] Fix | Delete
sessionStorage.setItem( key, JSON.stringify( stored_obj ) );
[254] Fix | Delete
return sessionStorage.getItem( key ) !== null;
[255] Fix | Delete
}
[256] Fix | Delete
[257] Fix | Delete
return false;
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
/**
[261] Fix | Delete
* Gets the saved post data for the current post.
[262] Fix | Delete
*
[263] Fix | Delete
* @since 3.9.0
[264] Fix | Delete
*
[265] Fix | Delete
* @return {boolean|Object} False if no storage or no data or the postData as an Object.
[266] Fix | Delete
*/
[267] Fix | Delete
function getSavedPostData() {
[268] Fix | Delete
var stored = getStorage();
[269] Fix | Delete
[270] Fix | Delete
if ( ! stored || ! post_id ) {
[271] Fix | Delete
return false;
[272] Fix | Delete
}
[273] Fix | Delete
[274] Fix | Delete
return stored[ 'post_' + post_id ] || false;
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
/**
[278] Fix | Delete
* Sets (save or delete) post data in the storage.
[279] Fix | Delete
*
[280] Fix | Delete
* If stored_data evaluates to 'false' the storage key for the current post will be removed.
[281] Fix | Delete
*
[282] Fix | Delete
* @since 3.9.0
[283] Fix | Delete
*
[284] Fix | Delete
* @param {Object|boolean|null} stored_data The post data to store or null/false/empty to delete the key.
[285] Fix | Delete
*
[286] Fix | Delete
* @return {boolean} True if data is stored, false if data was removed.
[287] Fix | Delete
*/
[288] Fix | Delete
function setData( stored_data ) {
[289] Fix | Delete
var stored = getStorage();
[290] Fix | Delete
[291] Fix | Delete
if ( ! stored || ! post_id ) {
[292] Fix | Delete
return false;
[293] Fix | Delete
}
[294] Fix | Delete
[295] Fix | Delete
if ( stored_data ) {
[296] Fix | Delete
stored[ 'post_' + post_id ] = stored_data;
[297] Fix | Delete
} else if ( stored.hasOwnProperty( 'post_' + post_id ) ) {
[298] Fix | Delete
delete stored[ 'post_' + post_id ];
[299] Fix | Delete
} else {
[300] Fix | Delete
return false;
[301] Fix | Delete
}
[302] Fix | Delete
[303] Fix | Delete
return setStorage( stored );
[304] Fix | Delete
}
[305] Fix | Delete
[306] Fix | Delete
/**
[307] Fix | Delete
* Sets isSuspended to true.
[308] Fix | Delete
*
[309] Fix | Delete
* @since 3.9.0
[310] Fix | Delete
*
[311] Fix | Delete
* @return {void}
[312] Fix | Delete
*/
[313] Fix | Delete
function suspend() {
[314] Fix | Delete
isSuspended = true;
[315] Fix | Delete
}
[316] Fix | Delete
[317] Fix | Delete
/**
[318] Fix | Delete
* Sets isSuspended to false.
[319] Fix | Delete
*
[320] Fix | Delete
* @since 3.9.0
[321] Fix | Delete
*
[322] Fix | Delete
* @return {void}
[323] Fix | Delete
*/
[324] Fix | Delete
function resume() {
[325] Fix | Delete
isSuspended = false;
[326] Fix | Delete
}
[327] Fix | Delete
[328] Fix | Delete
/**
[329] Fix | Delete
* Saves post data for the current post.
[330] Fix | Delete
*
[331] Fix | Delete
* Runs on a 15 seconds interval, saves when there are differences in the post title or content.
[332] Fix | Delete
* When the optional data is provided, updates the last saved post data.
[333] Fix | Delete
*
[334] Fix | Delete
* @since 3.9.0
[335] Fix | Delete
*
[336] Fix | Delete
* @param {Object} data The post data for saving, minimum 'post_title' and 'content'.
[337] Fix | Delete
*
[338] Fix | Delete
* @return {boolean} Returns true when data has been saved, otherwise it returns false.
[339] Fix | Delete
*/
[340] Fix | Delete
function save( data ) {
[341] Fix | Delete
var postData, compareString,
[342] Fix | Delete
result = false;
[343] Fix | Delete
[344] Fix | Delete
if ( isSuspended || ! hasStorage ) {
[345] Fix | Delete
return false;
[346] Fix | Delete
}
[347] Fix | Delete
[348] Fix | Delete
if ( data ) {
[349] Fix | Delete
postData = getSavedPostData() || {};
[350] Fix | Delete
$.extend( postData, data );
[351] Fix | Delete
} else {
[352] Fix | Delete
postData = getPostData('local');
[353] Fix | Delete
}
[354] Fix | Delete
[355] Fix | Delete
compareString = getCompareString( postData );
[356] Fix | Delete
[357] Fix | Delete
if ( typeof lastCompareString === 'undefined' ) {
[358] Fix | Delete
lastCompareString = initialCompareString;
[359] Fix | Delete
}
[360] Fix | Delete
[361] Fix | Delete
// If the content, title and excerpt did not change since the last save, don't save again.
[362] Fix | Delete
if ( compareString === lastCompareString ) {
[363] Fix | Delete
return false;
[364] Fix | Delete
}
[365] Fix | Delete
[366] Fix | Delete
postData.save_time = ( new Date() ).getTime();
[367] Fix | Delete
postData.status = $( '#post_status' ).val() || '';
[368] Fix | Delete
result = setData( postData );
[369] Fix | Delete
[370] Fix | Delete
if ( result ) {
[371] Fix | Delete
lastCompareString = compareString;
[372] Fix | Delete
}
[373] Fix | Delete
[374] Fix | Delete
return result;
[375] Fix | Delete
}
[376] Fix | Delete
[377] Fix | Delete
/**
[378] Fix | Delete
* Initializes the auto save function.
[379] Fix | Delete
*
[380] Fix | Delete
* Checks whether the editor is active or not to use the editor events
[381] Fix | Delete
* to autosave, or uses the values from the elements to autosave.
[382] Fix | Delete
*
[383] Fix | Delete
* Runs on DOM ready.
[384] Fix | Delete
*
[385] Fix | Delete
* @since 3.9.0
[386] Fix | Delete
*
[387] Fix | Delete
* @return {void}
[388] Fix | Delete
*/
[389] Fix | Delete
function run() {
[390] Fix | Delete
post_id = $('#post_ID').val() || 0;
[391] Fix | Delete
[392] Fix | Delete
// Check if the local post data is different than the loaded post data.
[393] Fix | Delete
if ( $( '#wp-content-wrap' ).hasClass( 'tmce-active' ) ) {
[394] Fix | Delete
[395] Fix | Delete
/*
[396] Fix | Delete
* If TinyMCE loads first, check the post 1.5 seconds after it is ready.
[397] Fix | Delete
* By this time the content has been loaded in the editor and 'saved' to the textarea.
[398] Fix | Delete
* This prevents false positives.
[399] Fix | Delete
*/
[400] Fix | Delete
$document.on( 'tinymce-editor-init.autosave', function() {
[401] Fix | Delete
window.setTimeout( function() {
[402] Fix | Delete
checkPost();
[403] Fix | Delete
}, 1500 );
[404] Fix | Delete
});
[405] Fix | Delete
} else {
[406] Fix | Delete
checkPost();
[407] Fix | Delete
}
[408] Fix | Delete
[409] Fix | Delete
// Save every 15 seconds.
[410] Fix | Delete
intervalTimer = window.setInterval( save, 15000 );
[411] Fix | Delete
[412] Fix | Delete
$( 'form#post' ).on( 'submit.autosave-local', function() {
[413] Fix | Delete
var editor = getEditor(),
[414] Fix | Delete
post_id = $('#post_ID').val() || 0;
[415] Fix | Delete
[416] Fix | Delete
if ( editor && ! editor.isHidden() ) {
[417] Fix | Delete
[418] Fix | Delete
// Last onSubmit event in the editor, needs to run after the content has been moved to the textarea.
[419] Fix | Delete
editor.on( 'submit', function() {
[420] Fix | Delete
save({
[421] Fix | Delete
post_title: $( '#title' ).val() || '',
[422] Fix | Delete
content: $( '#content' ).val() || '',
[423] Fix | Delete
excerpt: $( '#excerpt' ).val() || ''
[424] Fix | Delete
});
[425] Fix | Delete
});
[426] Fix | Delete
} else {
[427] Fix | Delete
save({
[428] Fix | Delete
post_title: $( '#title' ).val() || '',
[429] Fix | Delete
content: $( '#content' ).val() || '',
[430] Fix | Delete
excerpt: $( '#excerpt' ).val() || ''
[431] Fix | Delete
});
[432] Fix | Delete
}
[433] Fix | Delete
[434] Fix | Delete
var secure = ( 'https:' === window.location.protocol );
[435] Fix | Delete
wpCookies.set( 'wp-saving-post', post_id + '-check', 24 * 60 * 60, false, false, secure );
[436] Fix | Delete
});
[437] Fix | Delete
}
[438] Fix | Delete
[439] Fix | Delete
/**
[440] Fix | Delete
* Compares 2 strings. Removes whitespaces in the strings before comparing them.
[441] Fix | Delete
*
[442] Fix | Delete
* @since 3.9.0
[443] Fix | Delete
*
[444] Fix | Delete
* @param {string} str1 The first string.
[445] Fix | Delete
* @param {string} str2 The second string.
[446] Fix | Delete
* @return {boolean} True if the strings are the same.
[447] Fix | Delete
*/
[448] Fix | Delete
function compare( str1, str2 ) {
[449] Fix | Delete
function removeSpaces( string ) {
[450] Fix | Delete
return string.toString().replace(/[\x20\t\r\n\f]+/g, '');
[451] Fix | Delete
}
[452] Fix | Delete
[453] Fix | Delete
return ( removeSpaces( str1 || '' ) === removeSpaces( str2 || '' ) );
[454] Fix | Delete
}
[455] Fix | Delete
[456] Fix | Delete
/**
[457] Fix | Delete
* Checks if the saved data for the current post (if any) is different than the
[458] Fix | Delete
* loaded post data on the screen.
[459] Fix | Delete
*
[460] Fix | Delete
* Shows a standard message letting the user restore the post data if different.
[461] Fix | Delete
*
[462] Fix | Delete
* @since 3.9.0
[463] Fix | Delete
*
[464] Fix | Delete
* @return {void}
[465] Fix | Delete
*/
[466] Fix | Delete
function checkPost() {
[467] Fix | Delete
var content, post_title, excerpt, $notice,
[468] Fix | Delete
postData = getSavedPostData(),
[469] Fix | Delete
cookie = wpCookies.get( 'wp-saving-post' ),
[470] Fix | Delete
$newerAutosaveNotice = $( '#has-newer-autosave' ).parent( '.notice' ),
[471] Fix | Delete
$headerEnd = $( '.wp-header-end' );
[472] Fix | Delete
[473] Fix | Delete
if ( cookie === post_id + '-saved' ) {
[474] Fix | Delete
wpCookies.remove( 'wp-saving-post' );
[475] Fix | Delete
// The post was saved properly, remove old data and bail.
[476] Fix | Delete
setData( false );
[477] Fix | Delete
return;
[478] Fix | Delete
}
[479] Fix | Delete
[480] Fix | Delete
if ( ! postData ) {
[481] Fix | Delete
return;
[482] Fix | Delete
}
[483] Fix | Delete
[484] Fix | Delete
content = $( '#content' ).val() || '';
[485] Fix | Delete
post_title = $( '#title' ).val() || '';
[486] Fix | Delete
excerpt = $( '#excerpt' ).val() || '';
[487] Fix | Delete
[488] Fix | Delete
if ( compare( content, postData.content ) && compare( post_title, postData.post_title ) &&
[489] Fix | Delete
compare( excerpt, postData.excerpt ) ) {
[490] Fix | Delete
[491] Fix | Delete
return;
[492] Fix | Delete
}
[493] Fix | Delete
[494] Fix | Delete
/*
[495] Fix | Delete
* If '.wp-header-end' is found, append the notices after it otherwise
[496] Fix | Delete
* after the first h1 or h2 heading found within the main content.
[497] Fix | Delete
*/
[498] Fix | Delete
if ( ! $headerEnd.length ) {
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function