Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist
File: deprecated.js
this["wp"] = this["wp"] || {}; this["wp"]["deprecated"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "+BeG");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "+BeG":
[89] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
"use strict";
[92] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[93] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logged", function() { return logged; });
[94] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return deprecated; });
[95] Fix | Delete
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("g56x");
[96] Fix | Delete
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__);
[97] Fix | Delete
/**
[98] Fix | Delete
* WordPress dependencies
[99] Fix | Delete
*/
[100] Fix | Delete
[101] Fix | Delete
/**
[102] Fix | Delete
* Object map tracking messages which have been logged, for use in ensuring a
[103] Fix | Delete
* message is only logged once.
[104] Fix | Delete
*
[105] Fix | Delete
* @type {Record<string,true|undefined>}
[106] Fix | Delete
*/
[107] Fix | Delete
[108] Fix | Delete
var logged = Object.create(null);
[109] Fix | Delete
/**
[110] Fix | Delete
* Logs a message to notify developers about a deprecated feature.
[111] Fix | Delete
*
[112] Fix | Delete
* @param {string} feature Name of the deprecated feature.
[113] Fix | Delete
* @param {Object} [options] Personalisation options
[114] Fix | Delete
* @param {string} [options.version] Version in which the feature will be removed.
[115] Fix | Delete
* @param {string} [options.alternative] Feature to use instead
[116] Fix | Delete
* @param {string} [options.plugin] Plugin name if it's a plugin feature
[117] Fix | Delete
* @param {string} [options.link] Link to documentation
[118] Fix | Delete
* @param {string} [options.hint] Additional message to help transition away from the deprecated feature.
[119] Fix | Delete
*
[120] Fix | Delete
* @example
[121] Fix | Delete
* ```js
[122] Fix | Delete
* import deprecated from '@wordpress/deprecated';
[123] Fix | Delete
*
[124] Fix | Delete
* deprecated( 'Eating meat', {
[125] Fix | Delete
* version: 'the future',
[126] Fix | Delete
* alternative: 'vegetables',
[127] Fix | Delete
* plugin: 'the earth',
[128] Fix | Delete
* hint: 'You may find it beneficial to transition gradually.',
[129] Fix | Delete
* } );
[130] Fix | Delete
*
[131] Fix | Delete
* // Logs: 'Eating meat is deprecated and will be removed from the earth in the future. Please use vegetables instead. Note: You may find it beneficial to transition gradually.'
[132] Fix | Delete
* ```
[133] Fix | Delete
*/
[134] Fix | Delete
[135] Fix | Delete
function deprecated(feature) {
[136] Fix | Delete
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
[137] Fix | Delete
var version = options.version,
[138] Fix | Delete
alternative = options.alternative,
[139] Fix | Delete
plugin = options.plugin,
[140] Fix | Delete
link = options.link,
[141] Fix | Delete
hint = options.hint;
[142] Fix | Delete
var pluginMessage = plugin ? " from ".concat(plugin) : '';
[143] Fix | Delete
var versionMessage = version ? " and will be removed".concat(pluginMessage, " in version ").concat(version) : '';
[144] Fix | Delete
var useInsteadMessage = alternative ? " Please use ".concat(alternative, " instead.") : '';
[145] Fix | Delete
var linkMessage = link ? " See: ".concat(link) : '';
[146] Fix | Delete
var hintMessage = hint ? " Note: ".concat(hint) : '';
[147] Fix | Delete
var message = "".concat(feature, " is deprecated").concat(versionMessage, ".").concat(useInsteadMessage).concat(linkMessage).concat(hintMessage); // Skip if already logged.
[148] Fix | Delete
[149] Fix | Delete
if (message in logged) {
[150] Fix | Delete
return;
[151] Fix | Delete
}
[152] Fix | Delete
/**
[153] Fix | Delete
* Fires whenever a deprecated feature is encountered
[154] Fix | Delete
*
[155] Fix | Delete
* @param {string} feature Name of the deprecated feature.
[156] Fix | Delete
* @param {?Object} options Personalisation options
[157] Fix | Delete
* @param {?string} options.version Version in which the feature will be removed.
[158] Fix | Delete
* @param {?string} options.alternative Feature to use instead
[159] Fix | Delete
* @param {?string} options.plugin Plugin name if it's a plugin feature
[160] Fix | Delete
* @param {?string} options.link Link to documentation
[161] Fix | Delete
* @param {?string} options.hint Additional message to help transition away from the deprecated feature.
[162] Fix | Delete
* @param {?string} message Message sent to console.warn
[163] Fix | Delete
*/
[164] Fix | Delete
[165] Fix | Delete
[166] Fix | Delete
Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__["doAction"])('deprecated', feature, options, message); // eslint-disable-next-line no-console
[167] Fix | Delete
[168] Fix | Delete
console.warn(message);
[169] Fix | Delete
logged[message] = true;
[170] Fix | Delete
}
[171] Fix | Delete
[172] Fix | Delete
[173] Fix | Delete
/***/ }),
[174] Fix | Delete
[175] Fix | Delete
/***/ "g56x":
[176] Fix | Delete
/***/ (function(module, exports) {
[177] Fix | Delete
[178] Fix | Delete
(function() { module.exports = window["wp"]["hooks"]; }());
[179] Fix | Delete
[180] Fix | Delete
/***/ })
[181] Fix | Delete
[182] Fix | Delete
/******/ })["default"];
[183] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function