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: edit-post.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/compat get default export */
[6] Fix | Delete
/******/ (() => {
[7] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[8] Fix | Delete
/******/ __webpack_require__.n = (module) => {
[9] Fix | Delete
/******/ var getter = module && module.__esModule ?
[10] Fix | Delete
/******/ () => (module['default']) :
[11] Fix | Delete
/******/ () => (module);
[12] Fix | Delete
/******/ __webpack_require__.d(getter, { a: getter });
[13] Fix | Delete
/******/ return getter;
[14] Fix | Delete
/******/ };
[15] Fix | Delete
/******/ })();
[16] Fix | Delete
/******/
[17] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[18] Fix | Delete
/******/ (() => {
[19] Fix | Delete
/******/ // define getter functions for harmony exports
[20] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[21] Fix | Delete
/******/ for(var key in definition) {
[22] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[23] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[24] Fix | Delete
/******/ }
[25] Fix | Delete
/******/ }
[26] Fix | Delete
/******/ };
[27] Fix | Delete
/******/ })();
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[30] Fix | Delete
/******/ (() => {
[31] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[32] Fix | Delete
/******/ })();
[33] Fix | Delete
/******/
[34] Fix | Delete
/******/ /* webpack/runtime/make namespace object */
[35] Fix | Delete
/******/ (() => {
[36] Fix | Delete
/******/ // define __esModule on exports
[37] Fix | Delete
/******/ __webpack_require__.r = (exports) => {
[38] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[39] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[40] Fix | Delete
/******/ }
[41] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[42] Fix | Delete
/******/ };
[43] Fix | Delete
/******/ })();
[44] Fix | Delete
/******/
[45] Fix | Delete
/************************************************************************/
[46] Fix | Delete
var __webpack_exports__ = {};
[47] Fix | Delete
// ESM COMPAT FLAG
[48] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[49] Fix | Delete
[50] Fix | Delete
// EXPORTS
[51] Fix | Delete
__webpack_require__.d(__webpack_exports__, {
[52] Fix | Delete
PluginBlockSettingsMenuItem: () => (/* reexport */ PluginBlockSettingsMenuItem),
[53] Fix | Delete
PluginDocumentSettingPanel: () => (/* reexport */ PluginDocumentSettingPanel),
[54] Fix | Delete
PluginMoreMenuItem: () => (/* reexport */ PluginMoreMenuItem),
[55] Fix | Delete
PluginPostPublishPanel: () => (/* reexport */ PluginPostPublishPanel),
[56] Fix | Delete
PluginPostStatusInfo: () => (/* reexport */ PluginPostStatusInfo),
[57] Fix | Delete
PluginPrePublishPanel: () => (/* reexport */ PluginPrePublishPanel),
[58] Fix | Delete
PluginSidebar: () => (/* reexport */ PluginSidebar),
[59] Fix | Delete
PluginSidebarMoreMenuItem: () => (/* reexport */ PluginSidebarMoreMenuItem),
[60] Fix | Delete
__experimentalFullscreenModeClose: () => (/* reexport */ fullscreen_mode_close),
[61] Fix | Delete
__experimentalMainDashboardButton: () => (/* binding */ __experimentalMainDashboardButton),
[62] Fix | Delete
__experimentalPluginPostExcerpt: () => (/* reexport */ __experimentalPluginPostExcerpt),
[63] Fix | Delete
initializeEditor: () => (/* binding */ initializeEditor),
[64] Fix | Delete
reinitializeEditor: () => (/* binding */ reinitializeEditor),
[65] Fix | Delete
store: () => (/* reexport */ store)
[66] Fix | Delete
});
[67] Fix | Delete
[68] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
[69] Fix | Delete
var actions_namespaceObject = {};
[70] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[71] Fix | Delete
__webpack_require__.d(actions_namespaceObject, {
[72] Fix | Delete
__experimentalSetPreviewDeviceType: () => (__experimentalSetPreviewDeviceType),
[73] Fix | Delete
__unstableCreateTemplate: () => (__unstableCreateTemplate),
[74] Fix | Delete
closeGeneralSidebar: () => (closeGeneralSidebar),
[75] Fix | Delete
closeModal: () => (closeModal),
[76] Fix | Delete
closePublishSidebar: () => (closePublishSidebar),
[77] Fix | Delete
hideBlockTypes: () => (hideBlockTypes),
[78] Fix | Delete
initializeMetaBoxes: () => (initializeMetaBoxes),
[79] Fix | Delete
metaBoxUpdatesFailure: () => (metaBoxUpdatesFailure),
[80] Fix | Delete
metaBoxUpdatesSuccess: () => (metaBoxUpdatesSuccess),
[81] Fix | Delete
openGeneralSidebar: () => (openGeneralSidebar),
[82] Fix | Delete
openModal: () => (openModal),
[83] Fix | Delete
openPublishSidebar: () => (openPublishSidebar),
[84] Fix | Delete
removeEditorPanel: () => (removeEditorPanel),
[85] Fix | Delete
requestMetaBoxUpdates: () => (requestMetaBoxUpdates),
[86] Fix | Delete
setAvailableMetaBoxesPerLocation: () => (setAvailableMetaBoxesPerLocation),
[87] Fix | Delete
setIsEditingTemplate: () => (setIsEditingTemplate),
[88] Fix | Delete
setIsInserterOpened: () => (setIsInserterOpened),
[89] Fix | Delete
setIsListViewOpened: () => (setIsListViewOpened),
[90] Fix | Delete
showBlockTypes: () => (showBlockTypes),
[91] Fix | Delete
switchEditorMode: () => (switchEditorMode),
[92] Fix | Delete
toggleDistractionFree: () => (toggleDistractionFree),
[93] Fix | Delete
toggleEditorPanelEnabled: () => (toggleEditorPanelEnabled),
[94] Fix | Delete
toggleEditorPanelOpened: () => (toggleEditorPanelOpened),
[95] Fix | Delete
toggleFeature: () => (toggleFeature),
[96] Fix | Delete
togglePinnedPluginItem: () => (togglePinnedPluginItem),
[97] Fix | Delete
togglePublishSidebar: () => (togglePublishSidebar),
[98] Fix | Delete
updatePreferredStyleVariations: () => (updatePreferredStyleVariations)
[99] Fix | Delete
});
[100] Fix | Delete
[101] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
[102] Fix | Delete
var selectors_namespaceObject = {};
[103] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[104] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, {
[105] Fix | Delete
__experimentalGetInsertionPoint: () => (__experimentalGetInsertionPoint),
[106] Fix | Delete
__experimentalGetPreviewDeviceType: () => (__experimentalGetPreviewDeviceType),
[107] Fix | Delete
areMetaBoxesInitialized: () => (areMetaBoxesInitialized),
[108] Fix | Delete
getActiveGeneralSidebarName: () => (getActiveGeneralSidebarName),
[109] Fix | Delete
getActiveMetaBoxLocations: () => (getActiveMetaBoxLocations),
[110] Fix | Delete
getAllMetaBoxes: () => (getAllMetaBoxes),
[111] Fix | Delete
getEditedPostTemplate: () => (getEditedPostTemplate),
[112] Fix | Delete
getEditorMode: () => (getEditorMode),
[113] Fix | Delete
getHiddenBlockTypes: () => (getHiddenBlockTypes),
[114] Fix | Delete
getMetaBoxesPerLocation: () => (getMetaBoxesPerLocation),
[115] Fix | Delete
getPreference: () => (getPreference),
[116] Fix | Delete
getPreferences: () => (getPreferences),
[117] Fix | Delete
hasMetaBoxes: () => (hasMetaBoxes),
[118] Fix | Delete
isEditingTemplate: () => (isEditingTemplate),
[119] Fix | Delete
isEditorPanelEnabled: () => (isEditorPanelEnabled),
[120] Fix | Delete
isEditorPanelOpened: () => (isEditorPanelOpened),
[121] Fix | Delete
isEditorPanelRemoved: () => (isEditorPanelRemoved),
[122] Fix | Delete
isEditorSidebarOpened: () => (isEditorSidebarOpened),
[123] Fix | Delete
isFeatureActive: () => (isFeatureActive),
[124] Fix | Delete
isInserterOpened: () => (isInserterOpened),
[125] Fix | Delete
isListViewOpened: () => (isListViewOpened),
[126] Fix | Delete
isMetaBoxLocationActive: () => (isMetaBoxLocationActive),
[127] Fix | Delete
isMetaBoxLocationVisible: () => (isMetaBoxLocationVisible),
[128] Fix | Delete
isModalActive: () => (isModalActive),
[129] Fix | Delete
isPluginItemPinned: () => (isPluginItemPinned),
[130] Fix | Delete
isPluginSidebarOpened: () => (isPluginSidebarOpened),
[131] Fix | Delete
isPublishSidebarOpened: () => (isPublishSidebarOpened),
[132] Fix | Delete
isSavingMetaBoxes: () => (selectors_isSavingMetaBoxes)
[133] Fix | Delete
});
[134] Fix | Delete
[135] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blocks"]
[136] Fix | Delete
const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
[137] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blockLibrary"]
[138] Fix | Delete
const external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"];
[139] Fix | Delete
;// CONCATENATED MODULE: external ["wp","deprecated"]
[140] Fix | Delete
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
[141] Fix | Delete
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
[142] Fix | Delete
;// CONCATENATED MODULE: external ["wp","element"]
[143] Fix | Delete
const external_wp_element_namespaceObject = window["wp"]["element"];
[144] Fix | Delete
;// CONCATENATED MODULE: external ["wp","data"]
[145] Fix | Delete
const external_wp_data_namespaceObject = window["wp"]["data"];
[146] Fix | Delete
;// CONCATENATED MODULE: external ["wp","preferences"]
[147] Fix | Delete
const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
[148] Fix | Delete
;// CONCATENATED MODULE: external ["wp","widgets"]
[149] Fix | Delete
const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
[150] Fix | Delete
;// CONCATENATED MODULE: external ["wp","editor"]
[151] Fix | Delete
const external_wp_editor_namespaceObject = window["wp"]["editor"];
[152] Fix | Delete
;// CONCATENATED MODULE: external ["wp","components"]
[153] Fix | Delete
const external_wp_components_namespaceObject = window["wp"]["components"];
[154] Fix | Delete
;// CONCATENATED MODULE: external ["wp","coreData"]
[155] Fix | Delete
const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
[156] Fix | Delete
;// CONCATENATED MODULE: external ["wp","commands"]
[157] Fix | Delete
const external_wp_commands_namespaceObject = window["wp"]["commands"];
[158] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
[159] Fix | Delete
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
[160] Fix | Delete
;// CONCATENATED MODULE: external ["wp","blockEditor"]
[161] Fix | Delete
const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
[162] Fix | Delete
;// CONCATENATED MODULE: external ["wp","plugins"]
[163] Fix | Delete
const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
[164] Fix | Delete
;// CONCATENATED MODULE: external ["wp","i18n"]
[165] Fix | Delete
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
[166] Fix | Delete
;// CONCATENATED MODULE: external ["wp","notices"]
[167] Fix | Delete
const external_wp_notices_namespaceObject = window["wp"]["notices"];
[168] Fix | Delete
;// CONCATENATED MODULE: external ["wp","coreCommands"]
[169] Fix | Delete
const external_wp_coreCommands_namespaceObject = window["wp"]["coreCommands"];
[170] Fix | Delete
;// CONCATENATED MODULE: external ["wp","url"]
[171] Fix | Delete
const external_wp_url_namespaceObject = window["wp"]["url"];
[172] Fix | Delete
;// CONCATENATED MODULE: external ["wp","htmlEntities"]
[173] Fix | Delete
const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
[174] Fix | Delete
;// CONCATENATED MODULE: external ["wp","primitives"]
[175] Fix | Delete
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
[176] Fix | Delete
;// CONCATENATED MODULE: external "ReactJSXRuntime"
[177] Fix | Delete
const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
[178] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
[179] Fix | Delete
/**
[180] Fix | Delete
* WordPress dependencies
[181] Fix | Delete
*/
[182] Fix | Delete
[183] Fix | Delete
[184] Fix | Delete
const wordpress = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[185] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[186] Fix | Delete
viewBox: "-2 -2 24 24",
[187] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[188] Fix | Delete
d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
[189] Fix | Delete
})
[190] Fix | Delete
});
[191] Fix | Delete
/* harmony default export */ const library_wordpress = (wordpress);
[192] Fix | Delete
[193] Fix | Delete
;// CONCATENATED MODULE: external ["wp","compose"]
[194] Fix | Delete
const external_wp_compose_namespaceObject = window["wp"]["compose"];
[195] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
[196] Fix | Delete
/**
[197] Fix | Delete
* WordPress dependencies
[198] Fix | Delete
*/
[199] Fix | Delete
[200] Fix | Delete
[201] Fix | Delete
/**
[202] Fix | Delete
* Reducer keeping track of the meta boxes isSaving state.
[203] Fix | Delete
* A "true" value means the meta boxes saving request is in-flight.
[204] Fix | Delete
*
[205] Fix | Delete
*
[206] Fix | Delete
* @param {boolean} state Previous state.
[207] Fix | Delete
* @param {Object} action Action Object.
[208] Fix | Delete
*
[209] Fix | Delete
* @return {Object} Updated state.
[210] Fix | Delete
*/
[211] Fix | Delete
function isSavingMetaBoxes(state = false, action) {
[212] Fix | Delete
switch (action.type) {
[213] Fix | Delete
case 'REQUEST_META_BOX_UPDATES':
[214] Fix | Delete
return true;
[215] Fix | Delete
case 'META_BOX_UPDATES_SUCCESS':
[216] Fix | Delete
case 'META_BOX_UPDATES_FAILURE':
[217] Fix | Delete
return false;
[218] Fix | Delete
default:
[219] Fix | Delete
return state;
[220] Fix | Delete
}
[221] Fix | Delete
}
[222] Fix | Delete
function mergeMetaboxes(metaboxes = [], newMetaboxes) {
[223] Fix | Delete
const mergedMetaboxes = [...metaboxes];
[224] Fix | Delete
for (const metabox of newMetaboxes) {
[225] Fix | Delete
const existing = mergedMetaboxes.findIndex(box => box.id === metabox.id);
[226] Fix | Delete
if (existing !== -1) {
[227] Fix | Delete
mergedMetaboxes[existing] = metabox;
[228] Fix | Delete
} else {
[229] Fix | Delete
mergedMetaboxes.push(metabox);
[230] Fix | Delete
}
[231] Fix | Delete
}
[232] Fix | Delete
return mergedMetaboxes;
[233] Fix | Delete
}
[234] Fix | Delete
[235] Fix | Delete
/**
[236] Fix | Delete
* Reducer keeping track of the meta boxes per location.
[237] Fix | Delete
*
[238] Fix | Delete
* @param {boolean} state Previous state.
[239] Fix | Delete
* @param {Object} action Action Object.
[240] Fix | Delete
*
[241] Fix | Delete
* @return {Object} Updated state.
[242] Fix | Delete
*/
[243] Fix | Delete
function metaBoxLocations(state = {}, action) {
[244] Fix | Delete
switch (action.type) {
[245] Fix | Delete
case 'SET_META_BOXES_PER_LOCATIONS':
[246] Fix | Delete
{
[247] Fix | Delete
const newState = {
[248] Fix | Delete
...state
[249] Fix | Delete
};
[250] Fix | Delete
for (const [location, metaboxes] of Object.entries(action.metaBoxesPerLocation)) {
[251] Fix | Delete
newState[location] = mergeMetaboxes(newState[location], metaboxes);
[252] Fix | Delete
}
[253] Fix | Delete
return newState;
[254] Fix | Delete
}
[255] Fix | Delete
}
[256] Fix | Delete
return state;
[257] Fix | Delete
}
[258] Fix | Delete
[259] Fix | Delete
/**
[260] Fix | Delete
* Reducer tracking whether meta boxes are initialized.
[261] Fix | Delete
*
[262] Fix | Delete
* @param {boolean} state
[263] Fix | Delete
* @param {Object} action
[264] Fix | Delete
*
[265] Fix | Delete
* @return {boolean} Updated state.
[266] Fix | Delete
*/
[267] Fix | Delete
function metaBoxesInitialized(state = false, action) {
[268] Fix | Delete
switch (action.type) {
[269] Fix | Delete
case 'META_BOXES_INITIALIZED':
[270] Fix | Delete
return true;
[271] Fix | Delete
}
[272] Fix | Delete
return state;
[273] Fix | Delete
}
[274] Fix | Delete
const metaBoxes = (0,external_wp_data_namespaceObject.combineReducers)({
[275] Fix | Delete
isSaving: isSavingMetaBoxes,
[276] Fix | Delete
locations: metaBoxLocations,
[277] Fix | Delete
initialized: metaBoxesInitialized
[278] Fix | Delete
});
[279] Fix | Delete
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
[280] Fix | Delete
metaBoxes
[281] Fix | Delete
}));
[282] Fix | Delete
[283] Fix | Delete
;// CONCATENATED MODULE: external ["wp","apiFetch"]
[284] Fix | Delete
const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
[285] Fix | Delete
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
[286] Fix | Delete
;// CONCATENATED MODULE: external ["wp","hooks"]
[287] Fix | Delete
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
[288] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
[289] Fix | Delete
/**
[290] Fix | Delete
* Function returning the current Meta Boxes DOM Node in the editor
[291] Fix | Delete
* whether the meta box area is opened or not.
[292] Fix | Delete
* If the MetaBox Area is visible returns it, and returns the original container instead.
[293] Fix | Delete
*
[294] Fix | Delete
* @param {string} location Meta Box location.
[295] Fix | Delete
*
[296] Fix | Delete
* @return {string} HTML content.
[297] Fix | Delete
*/
[298] Fix | Delete
const getMetaBoxContainer = location => {
[299] Fix | Delete
const area = document.querySelector(`.edit-post-meta-boxes-area.is-${location} .metabox-location-${location}`);
[300] Fix | Delete
if (area) {
[301] Fix | Delete
return area;
[302] Fix | Delete
}
[303] Fix | Delete
return document.querySelector('#metaboxes .metabox-location-' + location);
[304] Fix | Delete
};
[305] Fix | Delete
[306] Fix | Delete
;// CONCATENATED MODULE: external ["wp","privateApis"]
[307] Fix | Delete
const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
[308] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/lock-unlock.js
[309] Fix | Delete
/**
[310] Fix | Delete
* WordPress dependencies
[311] Fix | Delete
*/
[312] Fix | Delete
[313] Fix | Delete
const {
[314] Fix | Delete
lock,
[315] Fix | Delete
unlock
[316] Fix | Delete
} = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/edit-post');
[317] Fix | Delete
[318] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
[319] Fix | Delete
/**
[320] Fix | Delete
* WordPress dependencies
[321] Fix | Delete
*/
[322] Fix | Delete
[323] Fix | Delete
[324] Fix | Delete
[325] Fix | Delete
[326] Fix | Delete
[327] Fix | Delete
[328] Fix | Delete
[329] Fix | Delete
/**
[330] Fix | Delete
* Internal dependencies
[331] Fix | Delete
*/
[332] Fix | Delete
[333] Fix | Delete
[334] Fix | Delete
const {
[335] Fix | Delete
interfaceStore
[336] Fix | Delete
} = unlock(external_wp_editor_namespaceObject.privateApis);
[337] Fix | Delete
[338] Fix | Delete
/**
[339] Fix | Delete
* Returns an action object used in signalling that the user opened an editor sidebar.
[340] Fix | Delete
*
[341] Fix | Delete
* @param {?string} name Sidebar name to be opened.
[342] Fix | Delete
*/
[343] Fix | Delete
const openGeneralSidebar = name => ({
[344] Fix | Delete
registry
[345] Fix | Delete
}) => {
[346] Fix | Delete
registry.dispatch(interfaceStore).enableComplementaryArea('core', name);
[347] Fix | Delete
};
[348] Fix | Delete
[349] Fix | Delete
/**
[350] Fix | Delete
* Returns an action object signalling that the user closed the sidebar.
[351] Fix | Delete
*/
[352] Fix | Delete
const closeGeneralSidebar = () => ({
[353] Fix | Delete
registry
[354] Fix | Delete
}) => registry.dispatch(interfaceStore).disableComplementaryArea('core');
[355] Fix | Delete
[356] Fix | Delete
/**
[357] Fix | Delete
* Returns an action object used in signalling that the user opened a modal.
[358] Fix | Delete
*
[359] Fix | Delete
* @deprecated since WP 6.3 use `core/interface` store's action with the same name instead.
[360] Fix | Delete
*
[361] Fix | Delete
*
[362] Fix | Delete
* @param {string} name A string that uniquely identifies the modal.
[363] Fix | Delete
*
[364] Fix | Delete
* @return {Object} Action object.
[365] Fix | Delete
*/
[366] Fix | Delete
const openModal = name => ({
[367] Fix | Delete
registry
[368] Fix | Delete
}) => {
[369] Fix | Delete
external_wp_deprecated_default()("select( 'core/edit-post' ).openModal( name )", {
[370] Fix | Delete
since: '6.3',
[371] Fix | Delete
alternative: "select( 'core/interface').openModal( name )"
[372] Fix | Delete
});
[373] Fix | Delete
return registry.dispatch(interfaceStore).openModal(name);
[374] Fix | Delete
};
[375] Fix | Delete
[376] Fix | Delete
/**
[377] Fix | Delete
* Returns an action object signalling that the user closed a modal.
[378] Fix | Delete
*
[379] Fix | Delete
* @deprecated since WP 6.3 use `core/interface` store's action with the same name instead.
[380] Fix | Delete
*
[381] Fix | Delete
* @return {Object} Action object.
[382] Fix | Delete
*/
[383] Fix | Delete
const closeModal = () => ({
[384] Fix | Delete
registry
[385] Fix | Delete
}) => {
[386] Fix | Delete
external_wp_deprecated_default()("select( 'core/edit-post' ).closeModal()", {
[387] Fix | Delete
since: '6.3',
[388] Fix | Delete
alternative: "select( 'core/interface').closeModal()"
[389] Fix | Delete
});
[390] Fix | Delete
return registry.dispatch(interfaceStore).closeModal();
[391] Fix | Delete
};
[392] Fix | Delete
[393] Fix | Delete
/**
[394] Fix | Delete
* Returns an action object used in signalling that the user opened the publish
[395] Fix | Delete
* sidebar.
[396] Fix | Delete
* @deprecated
[397] Fix | Delete
*
[398] Fix | Delete
* @return {Object} Action object
[399] Fix | Delete
*/
[400] Fix | Delete
const openPublishSidebar = () => ({
[401] Fix | Delete
registry
[402] Fix | Delete
}) => {
[403] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).openPublishSidebar", {
[404] Fix | Delete
since: '6.6',
[405] Fix | Delete
alternative: "dispatch( 'core/editor').openPublishSidebar"
[406] Fix | Delete
});
[407] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).openPublishSidebar();
[408] Fix | Delete
};
[409] Fix | Delete
[410] Fix | Delete
/**
[411] Fix | Delete
* Returns an action object used in signalling that the user closed the
[412] Fix | Delete
* publish sidebar.
[413] Fix | Delete
* @deprecated
[414] Fix | Delete
*
[415] Fix | Delete
* @return {Object} Action object.
[416] Fix | Delete
*/
[417] Fix | Delete
const closePublishSidebar = () => ({
[418] Fix | Delete
registry
[419] Fix | Delete
}) => {
[420] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).closePublishSidebar", {
[421] Fix | Delete
since: '6.6',
[422] Fix | Delete
alternative: "dispatch( 'core/editor').closePublishSidebar"
[423] Fix | Delete
});
[424] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).closePublishSidebar();
[425] Fix | Delete
};
[426] Fix | Delete
[427] Fix | Delete
/**
[428] Fix | Delete
* Returns an action object used in signalling that the user toggles the publish sidebar.
[429] Fix | Delete
* @deprecated
[430] Fix | Delete
*
[431] Fix | Delete
* @return {Object} Action object
[432] Fix | Delete
*/
[433] Fix | Delete
const togglePublishSidebar = () => ({
[434] Fix | Delete
registry
[435] Fix | Delete
}) => {
[436] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).togglePublishSidebar", {
[437] Fix | Delete
since: '6.6',
[438] Fix | Delete
alternative: "dispatch( 'core/editor').togglePublishSidebar"
[439] Fix | Delete
});
[440] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).togglePublishSidebar();
[441] Fix | Delete
};
[442] Fix | Delete
[443] Fix | Delete
/**
[444] Fix | Delete
* Returns an action object used to enable or disable a panel in the editor.
[445] Fix | Delete
*
[446] Fix | Delete
* @deprecated
[447] Fix | Delete
*
[448] Fix | Delete
* @param {string} panelName A string that identifies the panel to enable or disable.
[449] Fix | Delete
*
[450] Fix | Delete
* @return {Object} Action object.
[451] Fix | Delete
*/
[452] Fix | Delete
const toggleEditorPanelEnabled = panelName => ({
[453] Fix | Delete
registry
[454] Fix | Delete
}) => {
[455] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).toggleEditorPanelEnabled", {
[456] Fix | Delete
since: '6.5',
[457] Fix | Delete
alternative: "dispatch( 'core/editor').toggleEditorPanelEnabled"
[458] Fix | Delete
});
[459] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).toggleEditorPanelEnabled(panelName);
[460] Fix | Delete
};
[461] Fix | Delete
[462] Fix | Delete
/**
[463] Fix | Delete
* Opens a closed panel and closes an open panel.
[464] Fix | Delete
*
[465] Fix | Delete
* @deprecated
[466] Fix | Delete
*
[467] Fix | Delete
* @param {string} panelName A string that identifies the panel to open or close.
[468] Fix | Delete
*/
[469] Fix | Delete
const toggleEditorPanelOpened = panelName => ({
[470] Fix | Delete
registry
[471] Fix | Delete
}) => {
[472] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).toggleEditorPanelOpened", {
[473] Fix | Delete
since: '6.5',
[474] Fix | Delete
alternative: "dispatch( 'core/editor').toggleEditorPanelOpened"
[475] Fix | Delete
});
[476] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).toggleEditorPanelOpened(panelName);
[477] Fix | Delete
};
[478] Fix | Delete
[479] Fix | Delete
/**
[480] Fix | Delete
* Returns an action object used to remove a panel from the editor.
[481] Fix | Delete
*
[482] Fix | Delete
* @deprecated
[483] Fix | Delete
*
[484] Fix | Delete
* @param {string} panelName A string that identifies the panel to remove.
[485] Fix | Delete
*
[486] Fix | Delete
* @return {Object} Action object.
[487] Fix | Delete
*/
[488] Fix | Delete
const removeEditorPanel = panelName => ({
[489] Fix | Delete
registry
[490] Fix | Delete
}) => {
[491] Fix | Delete
external_wp_deprecated_default()("dispatch( 'core/edit-post' ).removeEditorPanel", {
[492] Fix | Delete
since: '6.5',
[493] Fix | Delete
alternative: "dispatch( 'core/editor').removeEditorPanel"
[494] Fix | Delete
});
[495] Fix | Delete
registry.dispatch(external_wp_editor_namespaceObject.store).removeEditorPanel(panelName);
[496] Fix | Delete
};
[497] Fix | Delete
[498] Fix | Delete
/**
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function