Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: plugins.js
*
[500] Fix | Delete
* @return {?WPPlugin} Plugin setting.
[501] Fix | Delete
*/
[502] Fix | Delete
[503] Fix | Delete
function getPlugin(name) {
[504] Fix | Delete
return api_plugins[name];
[505] Fix | Delete
}
[506] Fix | Delete
/**
[507] Fix | Delete
* Returns all registered plugins.
[508] Fix | Delete
*
[509] Fix | Delete
* @return {WPPlugin[]} Plugin settings.
[510] Fix | Delete
*/
[511] Fix | Delete
[512] Fix | Delete
function getPlugins() {
[513] Fix | Delete
return Object.values(api_plugins);
[514] Fix | Delete
}
[515] Fix | Delete
[516] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
[517] Fix | Delete
[518] Fix | Delete
[519] Fix | Delete
[520] Fix | Delete
[521] Fix | Delete
[522] Fix | Delete
[523] Fix | Delete
[524] Fix | Delete
[525] Fix | Delete
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
[526] Fix | Delete
[527] Fix | Delete
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
[528] Fix | Delete
[529] Fix | Delete
/**
[530] Fix | Delete
* External dependencies
[531] Fix | Delete
*/
[532] Fix | Delete
[533] Fix | Delete
/**
[534] Fix | Delete
* WordPress dependencies
[535] Fix | Delete
*/
[536] Fix | Delete
[537] Fix | Delete
[538] Fix | Delete
[539] Fix | Delete
/**
[540] Fix | Delete
* Internal dependencies
[541] Fix | Delete
*/
[542] Fix | Delete
[543] Fix | Delete
[544] Fix | Delete
[545] Fix | Delete
/**
[546] Fix | Delete
* A component that renders all plugin fills in a hidden div.
[547] Fix | Delete
*
[548] Fix | Delete
* @example
[549] Fix | Delete
* <caption>ES5</caption>
[550] Fix | Delete
* ```js
[551] Fix | Delete
* // Using ES5 syntax
[552] Fix | Delete
* var el = wp.element.createElement;
[553] Fix | Delete
* var PluginArea = wp.plugins.PluginArea;
[554] Fix | Delete
*
[555] Fix | Delete
* function Layout() {
[556] Fix | Delete
* return el(
[557] Fix | Delete
* 'div',
[558] Fix | Delete
* {},
[559] Fix | Delete
* 'Content of the page',
[560] Fix | Delete
* PluginArea
[561] Fix | Delete
* );
[562] Fix | Delete
* }
[563] Fix | Delete
* ```
[564] Fix | Delete
*
[565] Fix | Delete
* @example
[566] Fix | Delete
* <caption>ESNext</caption>
[567] Fix | Delete
* ```js
[568] Fix | Delete
* // Using ESNext syntax
[569] Fix | Delete
* import { PluginArea } from '@wordpress/plugins';
[570] Fix | Delete
*
[571] Fix | Delete
* const Layout = () => (
[572] Fix | Delete
* <div>
[573] Fix | Delete
* Content of the page
[574] Fix | Delete
* <PluginArea />
[575] Fix | Delete
* </div>
[576] Fix | Delete
* );
[577] Fix | Delete
* ```
[578] Fix | Delete
*
[579] Fix | Delete
* @return {WPComponent} The component to be rendered.
[580] Fix | Delete
*/
[581] Fix | Delete
[582] Fix | Delete
var plugin_area_PluginArea = /*#__PURE__*/function (_Component) {
[583] Fix | Delete
Object(inherits["a" /* default */])(PluginArea, _Component);
[584] Fix | Delete
[585] Fix | Delete
var _super = _createSuper(PluginArea);
[586] Fix | Delete
[587] Fix | Delete
function PluginArea() {
[588] Fix | Delete
var _this;
[589] Fix | Delete
[590] Fix | Delete
Object(classCallCheck["a" /* default */])(this, PluginArea);
[591] Fix | Delete
[592] Fix | Delete
_this = _super.apply(this, arguments);
[593] Fix | Delete
_this.setPlugins = _this.setPlugins.bind(Object(assertThisInitialized["a" /* default */])(_this));
[594] Fix | Delete
_this.state = _this.getCurrentPluginsState();
[595] Fix | Delete
return _this;
[596] Fix | Delete
}
[597] Fix | Delete
[598] Fix | Delete
Object(createClass["a" /* default */])(PluginArea, [{
[599] Fix | Delete
key: "getCurrentPluginsState",
[600] Fix | Delete
value: function getCurrentPluginsState() {
[601] Fix | Delete
return {
[602] Fix | Delete
plugins: Object(external_lodash_["map"])(getPlugins(), function (_ref) {
[603] Fix | Delete
var icon = _ref.icon,
[604] Fix | Delete
name = _ref.name,
[605] Fix | Delete
render = _ref.render;
[606] Fix | Delete
return {
[607] Fix | Delete
Plugin: render,
[608] Fix | Delete
context: {
[609] Fix | Delete
name: name,
[610] Fix | Delete
icon: icon
[611] Fix | Delete
}
[612] Fix | Delete
};
[613] Fix | Delete
})
[614] Fix | Delete
};
[615] Fix | Delete
}
[616] Fix | Delete
}, {
[617] Fix | Delete
key: "componentDidMount",
[618] Fix | Delete
value: function componentDidMount() {
[619] Fix | Delete
Object(external_wp_hooks_["addAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered', this.setPlugins);
[620] Fix | Delete
Object(external_wp_hooks_["addAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered', this.setPlugins);
[621] Fix | Delete
}
[622] Fix | Delete
}, {
[623] Fix | Delete
key: "componentWillUnmount",
[624] Fix | Delete
value: function componentWillUnmount() {
[625] Fix | Delete
Object(external_wp_hooks_["removeAction"])('plugins.pluginRegistered', 'core/plugins/plugin-area/plugins-registered');
[626] Fix | Delete
Object(external_wp_hooks_["removeAction"])('plugins.pluginUnregistered', 'core/plugins/plugin-area/plugins-unregistered');
[627] Fix | Delete
}
[628] Fix | Delete
}, {
[629] Fix | Delete
key: "setPlugins",
[630] Fix | Delete
value: function setPlugins() {
[631] Fix | Delete
this.setState(this.getCurrentPluginsState);
[632] Fix | Delete
}
[633] Fix | Delete
}, {
[634] Fix | Delete
key: "render",
[635] Fix | Delete
value: function render() {
[636] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[637] Fix | Delete
style: {
[638] Fix | Delete
display: 'none'
[639] Fix | Delete
}
[640] Fix | Delete
}, Object(external_lodash_["map"])(this.state.plugins, function (_ref2) {
[641] Fix | Delete
var context = _ref2.context,
[642] Fix | Delete
Plugin = _ref2.Plugin;
[643] Fix | Delete
return Object(external_wp_element_["createElement"])(Provider, {
[644] Fix | Delete
key: context.name,
[645] Fix | Delete
value: context
[646] Fix | Delete
}, Object(external_wp_element_["createElement"])(Plugin, null));
[647] Fix | Delete
}));
[648] Fix | Delete
}
[649] Fix | Delete
}]);
[650] Fix | Delete
[651] Fix | Delete
return PluginArea;
[652] Fix | Delete
}(external_wp_element_["Component"]);
[653] Fix | Delete
[654] Fix | Delete
/* harmony default export */ var plugin_area = (plugin_area_PluginArea);
[655] Fix | Delete
[656] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/index.js
[657] Fix | Delete
[658] Fix | Delete
[659] Fix | Delete
[660] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/index.js
[661] Fix | Delete
[662] Fix | Delete
[663] Fix | Delete
[664] Fix | Delete
[665] Fix | Delete
/***/ }),
[666] Fix | Delete
[667] Fix | Delete
/***/ "foSv":
[668] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[669] Fix | Delete
[670] Fix | Delete
"use strict";
[671] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
[672] Fix | Delete
function _getPrototypeOf(o) {
[673] Fix | Delete
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
[674] Fix | Delete
return o.__proto__ || Object.getPrototypeOf(o);
[675] Fix | Delete
};
[676] Fix | Delete
return _getPrototypeOf(o);
[677] Fix | Delete
}
[678] Fix | Delete
[679] Fix | Delete
/***/ }),
[680] Fix | Delete
[681] Fix | Delete
/***/ "g56x":
[682] Fix | Delete
/***/ (function(module, exports) {
[683] Fix | Delete
[684] Fix | Delete
(function() { module.exports = window["wp"]["hooks"]; }());
[685] Fix | Delete
[686] Fix | Delete
/***/ }),
[687] Fix | Delete
[688] Fix | Delete
/***/ "md7G":
[689] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[690] Fix | Delete
[691] Fix | Delete
"use strict";
[692] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
[693] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("U8pU");
[694] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("JX7q");
[695] Fix | Delete
[696] Fix | Delete
[697] Fix | Delete
function _possibleConstructorReturn(self, call) {
[698] Fix | Delete
if (call && (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
[699] Fix | Delete
return call;
[700] Fix | Delete
}
[701] Fix | Delete
[702] Fix | Delete
return Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
[703] Fix | Delete
}
[704] Fix | Delete
[705] Fix | Delete
/***/ }),
[706] Fix | Delete
[707] Fix | Delete
/***/ "rePB":
[708] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[709] Fix | Delete
[710] Fix | Delete
"use strict";
[711] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
[712] Fix | Delete
function _defineProperty(obj, key, value) {
[713] Fix | Delete
if (key in obj) {
[714] Fix | Delete
Object.defineProperty(obj, key, {
[715] Fix | Delete
value: value,
[716] Fix | Delete
enumerable: true,
[717] Fix | Delete
configurable: true,
[718] Fix | Delete
writable: true
[719] Fix | Delete
});
[720] Fix | Delete
} else {
[721] Fix | Delete
obj[key] = value;
[722] Fix | Delete
}
[723] Fix | Delete
[724] Fix | Delete
return obj;
[725] Fix | Delete
}
[726] Fix | Delete
[727] Fix | Delete
/***/ }),
[728] Fix | Delete
[729] Fix | Delete
/***/ "s4An":
[730] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[731] Fix | Delete
[732] Fix | Delete
"use strict";
[733] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _setPrototypeOf; });
[734] Fix | Delete
function _setPrototypeOf(o, p) {
[735] Fix | Delete
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
[736] Fix | Delete
o.__proto__ = p;
[737] Fix | Delete
return o;
[738] Fix | Delete
};
[739] Fix | Delete
[740] Fix | Delete
return _setPrototypeOf(o, p);
[741] Fix | Delete
}
[742] Fix | Delete
[743] Fix | Delete
/***/ }),
[744] Fix | Delete
[745] Fix | Delete
/***/ "vuIU":
[746] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[747] Fix | Delete
[748] Fix | Delete
"use strict";
[749] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
[750] Fix | Delete
function _defineProperties(target, props) {
[751] Fix | Delete
for (var i = 0; i < props.length; i++) {
[752] Fix | Delete
var descriptor = props[i];
[753] Fix | Delete
descriptor.enumerable = descriptor.enumerable || false;
[754] Fix | Delete
descriptor.configurable = true;
[755] Fix | Delete
if ("value" in descriptor) descriptor.writable = true;
[756] Fix | Delete
Object.defineProperty(target, descriptor.key, descriptor);
[757] Fix | Delete
}
[758] Fix | Delete
}
[759] Fix | Delete
[760] Fix | Delete
function _createClass(Constructor, protoProps, staticProps) {
[761] Fix | Delete
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
[762] Fix | Delete
if (staticProps) _defineProperties(Constructor, staticProps);
[763] Fix | Delete
return Constructor;
[764] Fix | Delete
}
[765] Fix | Delete
[766] Fix | Delete
/***/ }),
[767] Fix | Delete
[768] Fix | Delete
/***/ "wx14":
[769] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[770] Fix | Delete
[771] Fix | Delete
"use strict";
[772] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
[773] Fix | Delete
function _extends() {
[774] Fix | Delete
_extends = Object.assign || function (target) {
[775] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[776] Fix | Delete
var source = arguments[i];
[777] Fix | Delete
[778] Fix | Delete
for (var key in source) {
[779] Fix | Delete
if (Object.prototype.hasOwnProperty.call(source, key)) {
[780] Fix | Delete
target[key] = source[key];
[781] Fix | Delete
}
[782] Fix | Delete
}
[783] Fix | Delete
}
[784] Fix | Delete
[785] Fix | Delete
return target;
[786] Fix | Delete
};
[787] Fix | Delete
[788] Fix | Delete
return _extends.apply(this, arguments);
[789] Fix | Delete
}
[790] Fix | Delete
[791] Fix | Delete
/***/ })
[792] Fix | Delete
[793] Fix | Delete
/******/ });
[794] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function