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-inclu.../js/dist
File: shortcode.js
* Set a shortcode attribute.
[500] Fix | Delete
*
[501] Fix | Delete
* Automatically detects whether `attr` is named or numeric and routes it
[502] Fix | Delete
* accordingly.
[503] Fix | Delete
*
[504] Fix | Delete
* @param {(number|string)} attr Attribute key.
[505] Fix | Delete
* @param {string} value Attribute value.
[506] Fix | Delete
*
[507] Fix | Delete
* @return {WPShortcode} Shortcode instance.
[508] Fix | Delete
*/
[509] Fix | Delete
set(attr, value) {
[510] Fix | Delete
this.attrs[typeof attr === 'number' ? 'numeric' : 'named'][attr] = value;
[511] Fix | Delete
return this;
[512] Fix | Delete
},
[513] Fix | Delete
/**
[514] Fix | Delete
* Transform the shortcode into a string.
[515] Fix | Delete
*
[516] Fix | Delete
* @return {string} String representation of the shortcode.
[517] Fix | Delete
*/
[518] Fix | Delete
string() {
[519] Fix | Delete
let text = '[' + this.tag;
[520] Fix | Delete
this.attrs.numeric.forEach(value => {
[521] Fix | Delete
if (/\s/.test(value)) {
[522] Fix | Delete
text += ' "' + value + '"';
[523] Fix | Delete
} else {
[524] Fix | Delete
text += ' ' + value;
[525] Fix | Delete
}
[526] Fix | Delete
});
[527] Fix | Delete
Object.entries(this.attrs.named).forEach(([name, value]) => {
[528] Fix | Delete
text += ' ' + name + '="' + value + '"';
[529] Fix | Delete
});
[530] Fix | Delete
[531] Fix | Delete
// If the tag is marked as `single` or `self-closing`, close the tag and
[532] Fix | Delete
// ignore any additional content.
[533] Fix | Delete
if ('single' === this.type) {
[534] Fix | Delete
return text + ']';
[535] Fix | Delete
} else if ('self-closing' === this.type) {
[536] Fix | Delete
return text + ' /]';
[537] Fix | Delete
}
[538] Fix | Delete
[539] Fix | Delete
// Complete the opening tag.
[540] Fix | Delete
text += ']';
[541] Fix | Delete
if (this.content) {
[542] Fix | Delete
text += this.content;
[543] Fix | Delete
}
[544] Fix | Delete
[545] Fix | Delete
// Add the closing tag.
[546] Fix | Delete
return text + '[/' + this.tag + ']';
[547] Fix | Delete
}
[548] Fix | Delete
});
[549] Fix | Delete
/* harmony default export */ const build_module = (shortcode);
[550] Fix | Delete
[551] Fix | Delete
(window.wp = window.wp || {}).shortcode = __webpack_exports__["default"];
[552] Fix | Delete
/******/ })()
[553] Fix | Delete
;
[554] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function