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
/home/sportsfe.../httpdocs/wp-inclu.../js/dist
File: deprecated.js
/******/ (() => { // webpackBootstrap
[0] Fix | Delete
/******/ "use strict";
[1] Fix | Delete
/******/ // The require scope
[2] Fix | Delete
/******/ var __webpack_require__ = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/************************************************************************/
[5] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[6] Fix | Delete
/******/ (() => {
[7] Fix | Delete
/******/ // define getter functions for harmony exports
[8] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[9] Fix | Delete
/******/ for(var key in definition) {
[10] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[11] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[12] Fix | Delete
/******/ }
[13] Fix | Delete
/******/ }
[14] Fix | Delete
/******/ };
[15] Fix | Delete
/******/ })();
[16] Fix | Delete
/******/
[17] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[18] Fix | Delete
/******/ (() => {
[19] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[20] Fix | Delete
/******/ })();
[21] Fix | Delete
/******/
[22] Fix | Delete
/************************************************************************/
[23] Fix | Delete
var __webpack_exports__ = {};
[24] Fix | Delete
[25] Fix | Delete
// EXPORTS
[26] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[27] Fix | Delete
"default": () => (/* binding */ deprecated)
[28] Fix | Delete
});
[29] Fix | Delete
[30] Fix | Delete
// UNUSED EXPORTS: logged
[31] Fix | Delete
[32] Fix | Delete
;// CONCATENATED MODULE: external ["wp","hooks"]
[33] Fix | Delete
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
[34] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/deprecated/build-module/index.js
[35] Fix | Delete
/**
[36] Fix | Delete
* WordPress dependencies
[37] Fix | Delete
*/
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Object map tracking messages which have been logged, for use in ensuring a
[42] Fix | Delete
* message is only logged once.
[43] Fix | Delete
*
[44] Fix | Delete
* @type {Record<string, true | undefined>}
[45] Fix | Delete
*/
[46] Fix | Delete
const logged = Object.create(null);
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* Logs a message to notify developers about a deprecated feature.
[50] Fix | Delete
*
[51] Fix | Delete
* @param {string} feature Name of the deprecated feature.
[52] Fix | Delete
* @param {Object} [options] Personalisation options
[53] Fix | Delete
* @param {string} [options.since] Version in which the feature was deprecated.
[54] Fix | Delete
* @param {string} [options.version] Version in which the feature will be removed.
[55] Fix | Delete
* @param {string} [options.alternative] Feature to use instead
[56] Fix | Delete
* @param {string} [options.plugin] Plugin name if it's a plugin feature
[57] Fix | Delete
* @param {string} [options.link] Link to documentation
[58] Fix | Delete
* @param {string} [options.hint] Additional message to help transition away from the deprecated feature.
[59] Fix | Delete
*
[60] Fix | Delete
* @example
[61] Fix | Delete
* ```js
[62] Fix | Delete
* import deprecated from '@wordpress/deprecated';
[63] Fix | Delete
*
[64] Fix | Delete
* deprecated( 'Eating meat', {
[65] Fix | Delete
* since: '2019.01.01'
[66] Fix | Delete
* version: '2020.01.01',
[67] Fix | Delete
* alternative: 'vegetables',
[68] Fix | Delete
* plugin: 'the earth',
[69] Fix | Delete
* hint: 'You may find it beneficial to transition gradually.',
[70] Fix | Delete
* } );
[71] Fix | Delete
*
[72] Fix | Delete
* // Logs: 'Eating meat is deprecated since version 2019.01.01 and will be removed from the earth in version 2020.01.01. Please use vegetables instead. Note: You may find it beneficial to transition gradually.'
[73] Fix | Delete
* ```
[74] Fix | Delete
*/
[75] Fix | Delete
function deprecated(feature, options = {}) {
[76] Fix | Delete
const {
[77] Fix | Delete
since,
[78] Fix | Delete
version,
[79] Fix | Delete
alternative,
[80] Fix | Delete
plugin,
[81] Fix | Delete
link,
[82] Fix | Delete
hint
[83] Fix | Delete
} = options;
[84] Fix | Delete
const pluginMessage = plugin ? ` from ${plugin}` : '';
[85] Fix | Delete
const sinceMessage = since ? ` since version ${since}` : '';
[86] Fix | Delete
const versionMessage = version ? ` and will be removed${pluginMessage} in version ${version}` : '';
[87] Fix | Delete
const useInsteadMessage = alternative ? ` Please use ${alternative} instead.` : '';
[88] Fix | Delete
const linkMessage = link ? ` See: ${link}` : '';
[89] Fix | Delete
const hintMessage = hint ? ` Note: ${hint}` : '';
[90] Fix | Delete
const message = `${feature} is deprecated${sinceMessage}${versionMessage}.${useInsteadMessage}${linkMessage}${hintMessage}`;
[91] Fix | Delete
[92] Fix | Delete
// Skip if already logged.
[93] Fix | Delete
if (message in logged) {
[94] Fix | Delete
return;
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
/**
[98] Fix | Delete
* Fires whenever a deprecated feature is encountered
[99] Fix | Delete
*
[100] Fix | Delete
* @param {string} feature Name of the deprecated feature.
[101] Fix | Delete
* @param {?Object} options Personalisation options
[102] Fix | Delete
* @param {string} options.since Version in which the feature was deprecated.
[103] Fix | Delete
* @param {?string} options.version Version in which the feature will be removed.
[104] Fix | Delete
* @param {?string} options.alternative Feature to use instead
[105] Fix | Delete
* @param {?string} options.plugin Plugin name if it's a plugin feature
[106] Fix | Delete
* @param {?string} options.link Link to documentation
[107] Fix | Delete
* @param {?string} options.hint Additional message to help transition away from the deprecated feature.
[108] Fix | Delete
* @param {?string} message Message sent to console.warn
[109] Fix | Delete
*/
[110] Fix | Delete
(0,external_wp_hooks_namespaceObject.doAction)('deprecated', feature, options, message);
[111] Fix | Delete
[112] Fix | Delete
// eslint-disable-next-line no-console
[113] Fix | Delete
console.warn(message);
[114] Fix | Delete
logged[message] = true;
[115] Fix | Delete
}
[116] Fix | Delete
[117] Fix | Delete
/** @typedef {import('utility-types').NonUndefined<Parameters<typeof deprecated>[1]>} DeprecatedOptions */
[118] Fix | Delete
[119] Fix | Delete
(window.wp = window.wp || {}).deprecated = __webpack_exports__["default"];
[120] Fix | Delete
/******/ })()
[121] Fix | Delete
;
[122] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function