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/clone/wp-inclu.../js/dist
File: editor.js
keyboardShortcut,
[27500] Fix | Delete
showSummary,
[27501] Fix | Delete
renderingMode
[27502] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[27503] Fix | Delete
const shortcut = select(external_wp_keyboardShortcuts_namespaceObject.store).getShortcutRepresentation('core/editor/toggle-sidebar');
[27504] Fix | Delete
const sidebar = select(store).getActiveComplementaryArea('core');
[27505] Fix | Delete
const _isEditorSidebarOpened = [sidebars.block, sidebars.document].includes(sidebar);
[27506] Fix | Delete
let _tabName = sidebar;
[27507] Fix | Delete
if (!_isEditorSidebarOpened) {
[27508] Fix | Delete
_tabName = !!select(external_wp_blockEditor_namespaceObject.store).getBlockSelectionStart() ? sidebars.block : sidebars.document;
[27509] Fix | Delete
}
[27510] Fix | Delete
return {
[27511] Fix | Delete
tabName: _tabName,
[27512] Fix | Delete
keyboardShortcut: shortcut,
[27513] Fix | Delete
showSummary: ![TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE, NAVIGATION_POST_TYPE].includes(select(store_store).getCurrentPostType()),
[27514] Fix | Delete
renderingMode: select(store_store).getRenderingMode()
[27515] Fix | Delete
};
[27516] Fix | Delete
}, []);
[27517] Fix | Delete
const {
[27518] Fix | Delete
enableComplementaryArea
[27519] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[27520] Fix | Delete
const onTabSelect = (0,external_wp_element_namespaceObject.useCallback)(newSelectedTabId => {
[27521] Fix | Delete
if (!!newSelectedTabId) {
[27522] Fix | Delete
enableComplementaryArea('core', newSelectedTabId);
[27523] Fix | Delete
}
[27524] Fix | Delete
}, [enableComplementaryArea]);
[27525] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(sidebar_Tabs, {
[27526] Fix | Delete
selectedTabId: tabName,
[27527] Fix | Delete
onSelect: onTabSelect,
[27528] Fix | Delete
selectOnMove: false,
[27529] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SidebarContent, {
[27530] Fix | Delete
tabName: tabName,
[27531] Fix | Delete
keyboardShortcut: keyboardShortcut,
[27532] Fix | Delete
showSummary: showSummary,
[27533] Fix | Delete
renderingMode: renderingMode,
[27534] Fix | Delete
onActionPerformed: onActionPerformed,
[27535] Fix | Delete
extraPanels: extraPanels
[27536] Fix | Delete
})
[27537] Fix | Delete
});
[27538] Fix | Delete
};
[27539] Fix | Delete
/* harmony default export */ const components_sidebar = (Sidebar);
[27540] Fix | Delete
[27541] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor/index.js
[27542] Fix | Delete
/**
[27543] Fix | Delete
* WordPress dependencies
[27544] Fix | Delete
*/
[27545] Fix | Delete
[27546] Fix | Delete
[27547] Fix | Delete
[27548] Fix | Delete
[27549] Fix | Delete
[27550] Fix | Delete
/**
[27551] Fix | Delete
* Internal dependencies
[27552] Fix | Delete
*/
[27553] Fix | Delete
[27554] Fix | Delete
[27555] Fix | Delete
[27556] Fix | Delete
[27557] Fix | Delete
[27558] Fix | Delete
[27559] Fix | Delete
function Editor({
[27560] Fix | Delete
postType,
[27561] Fix | Delete
postId,
[27562] Fix | Delete
templateId,
[27563] Fix | Delete
settings,
[27564] Fix | Delete
children,
[27565] Fix | Delete
// This could be part of the settings.
[27566] Fix | Delete
onActionPerformed,
[27567] Fix | Delete
// The following abstractions are not ideal but necessary
[27568] Fix | Delete
// to account for site editor and post editor differences for now.
[27569] Fix | Delete
className,
[27570] Fix | Delete
styles,
[27571] Fix | Delete
customSaveButton,
[27572] Fix | Delete
customSavePanel,
[27573] Fix | Delete
forceDisableBlockTools,
[27574] Fix | Delete
title,
[27575] Fix | Delete
iframeProps,
[27576] Fix | Delete
extraSidebarPanels,
[27577] Fix | Delete
enableRegionNavigation = true
[27578] Fix | Delete
}) {
[27579] Fix | Delete
const {
[27580] Fix | Delete
post,
[27581] Fix | Delete
template,
[27582] Fix | Delete
hasLoadedPost
[27583] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[27584] Fix | Delete
const {
[27585] Fix | Delete
getEntityRecord,
[27586] Fix | Delete
hasFinishedResolution
[27587] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[27588] Fix | Delete
return {
[27589] Fix | Delete
post: getEntityRecord('postType', postType, postId),
[27590] Fix | Delete
template: templateId ? getEntityRecord('postType', TEMPLATE_POST_TYPE, templateId) : undefined,
[27591] Fix | Delete
hasLoadedPost: hasFinishedResolution('getEntityRecord', ['postType', postType, postId])
[27592] Fix | Delete
};
[27593] Fix | Delete
}, [postType, postId, templateId]);
[27594] Fix | Delete
if (!post) {
[27595] Fix | Delete
return null;
[27596] Fix | Delete
}
[27597] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ExperimentalEditorProvider, {
[27598] Fix | Delete
post: post,
[27599] Fix | Delete
__unstableTemplate: template,
[27600] Fix | Delete
settings: settings,
[27601] Fix | Delete
useSubRegistry: false,
[27602] Fix | Delete
children: [hasLoadedPost && !post && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
[27603] Fix | Delete
status: "warning",
[27604] Fix | Delete
isDismissible: false,
[27605] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")
[27606] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EditorInterface, {
[27607] Fix | Delete
className: className,
[27608] Fix | Delete
styles: styles,
[27609] Fix | Delete
enableRegionNavigation: enableRegionNavigation,
[27610] Fix | Delete
customSaveButton: customSaveButton,
[27611] Fix | Delete
customSavePanel: customSavePanel,
[27612] Fix | Delete
forceDisableBlockTools: forceDisableBlockTools,
[27613] Fix | Delete
title: title,
[27614] Fix | Delete
iframeProps: iframeProps
[27615] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(components_sidebar, {
[27616] Fix | Delete
onActionPerformed: onActionPerformed,
[27617] Fix | Delete
extraPanels: extraSidebarPanels
[27618] Fix | Delete
}), children]
[27619] Fix | Delete
});
[27620] Fix | Delete
}
[27621] Fix | Delete
/* harmony default export */ const editor = (Editor);
[27622] Fix | Delete
[27623] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-publish-sidebar.js
[27624] Fix | Delete
/**
[27625] Fix | Delete
* WordPress dependencies
[27626] Fix | Delete
*/
[27627] Fix | Delete
[27628] Fix | Delete
[27629] Fix | Delete
[27630] Fix | Delete
[27631] Fix | Delete
/**
[27632] Fix | Delete
* Internal dependencies
[27633] Fix | Delete
*/
[27634] Fix | Delete
[27635] Fix | Delete
[27636] Fix | Delete
const {
[27637] Fix | Delete
PreferenceBaseOption: enable_publish_sidebar_PreferenceBaseOption
[27638] Fix | Delete
} = unlock(external_wp_preferences_namespaceObject.privateApis);
[27639] Fix | Delete
/* harmony default export */ const enable_publish_sidebar = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)(select => ({
[27640] Fix | Delete
isChecked: select(store_store).isPublishSidebarEnabled()
[27641] Fix | Delete
})), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
[27642] Fix | Delete
const {
[27643] Fix | Delete
enablePublishSidebar,
[27644] Fix | Delete
disablePublishSidebar
[27645] Fix | Delete
} = dispatch(store_store);
[27646] Fix | Delete
return {
[27647] Fix | Delete
onChange: isEnabled => isEnabled ? enablePublishSidebar() : disablePublishSidebar()
[27648] Fix | Delete
};
[27649] Fix | Delete
}))(enable_publish_sidebar_PreferenceBaseOption));
[27650] Fix | Delete
[27651] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/checklist.js
[27652] Fix | Delete
/**
[27653] Fix | Delete
* WordPress dependencies
[27654] Fix | Delete
*/
[27655] Fix | Delete
[27656] Fix | Delete
[27657] Fix | Delete
[27658] Fix | Delete
[27659] Fix | Delete
function BlockTypesChecklist({
[27660] Fix | Delete
blockTypes,
[27661] Fix | Delete
value,
[27662] Fix | Delete
onItemChange
[27663] Fix | Delete
}) {
[27664] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
[27665] Fix | Delete
className: "editor-block-manager__checklist",
[27666] Fix | Delete
children: blockTypes.map(blockType => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
[27667] Fix | Delete
className: "editor-block-manager__checklist-item",
[27668] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
[27669] Fix | Delete
__nextHasNoMarginBottom: true,
[27670] Fix | Delete
label: blockType.title,
[27671] Fix | Delete
checked: value.includes(blockType.name),
[27672] Fix | Delete
onChange: (...args) => onItemChange(blockType.name, ...args)
[27673] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, {
[27674] Fix | Delete
icon: blockType.icon
[27675] Fix | Delete
})]
[27676] Fix | Delete
}, blockType.name))
[27677] Fix | Delete
});
[27678] Fix | Delete
}
[27679] Fix | Delete
/* harmony default export */ const checklist = (BlockTypesChecklist);
[27680] Fix | Delete
[27681] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/category.js
[27682] Fix | Delete
/**
[27683] Fix | Delete
* WordPress dependencies
[27684] Fix | Delete
*/
[27685] Fix | Delete
[27686] Fix | Delete
[27687] Fix | Delete
[27688] Fix | Delete
[27689] Fix | Delete
[27690] Fix | Delete
[27691] Fix | Delete
/**
[27692] Fix | Delete
* Internal dependencies
[27693] Fix | Delete
*/
[27694] Fix | Delete
[27695] Fix | Delete
[27696] Fix | Delete
[27697] Fix | Delete
[27698] Fix | Delete
[27699] Fix | Delete
function BlockManagerCategory({
[27700] Fix | Delete
title,
[27701] Fix | Delete
blockTypes
[27702] Fix | Delete
}) {
[27703] Fix | Delete
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(BlockManagerCategory);
[27704] Fix | Delete
const {
[27705] Fix | Delete
allowedBlockTypes,
[27706] Fix | Delete
hiddenBlockTypes
[27707] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[27708] Fix | Delete
const {
[27709] Fix | Delete
getEditorSettings
[27710] Fix | Delete
} = select(store_store);
[27711] Fix | Delete
const {
[27712] Fix | Delete
get
[27713] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[27714] Fix | Delete
return {
[27715] Fix | Delete
allowedBlockTypes: getEditorSettings().allowedBlockTypes,
[27716] Fix | Delete
hiddenBlockTypes: get('core', 'hiddenBlockTypes')
[27717] Fix | Delete
};
[27718] Fix | Delete
}, []);
[27719] Fix | Delete
const filteredBlockTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
[27720] Fix | Delete
if (allowedBlockTypes === true) {
[27721] Fix | Delete
return blockTypes;
[27722] Fix | Delete
}
[27723] Fix | Delete
return blockTypes.filter(({
[27724] Fix | Delete
name
[27725] Fix | Delete
}) => {
[27726] Fix | Delete
return allowedBlockTypes?.includes(name);
[27727] Fix | Delete
});
[27728] Fix | Delete
}, [allowedBlockTypes, blockTypes]);
[27729] Fix | Delete
const {
[27730] Fix | Delete
showBlockTypes,
[27731] Fix | Delete
hideBlockTypes
[27732] Fix | Delete
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store_store));
[27733] Fix | Delete
const toggleVisible = (0,external_wp_element_namespaceObject.useCallback)((blockName, nextIsChecked) => {
[27734] Fix | Delete
if (nextIsChecked) {
[27735] Fix | Delete
showBlockTypes(blockName);
[27736] Fix | Delete
} else {
[27737] Fix | Delete
hideBlockTypes(blockName);
[27738] Fix | Delete
}
[27739] Fix | Delete
}, [showBlockTypes, hideBlockTypes]);
[27740] Fix | Delete
const toggleAllVisible = (0,external_wp_element_namespaceObject.useCallback)(nextIsChecked => {
[27741] Fix | Delete
const blockNames = blockTypes.map(({
[27742] Fix | Delete
name
[27743] Fix | Delete
}) => name);
[27744] Fix | Delete
if (nextIsChecked) {
[27745] Fix | Delete
showBlockTypes(blockNames);
[27746] Fix | Delete
} else {
[27747] Fix | Delete
hideBlockTypes(blockNames);
[27748] Fix | Delete
}
[27749] Fix | Delete
}, [blockTypes, showBlockTypes, hideBlockTypes]);
[27750] Fix | Delete
if (!filteredBlockTypes.length) {
[27751] Fix | Delete
return null;
[27752] Fix | Delete
}
[27753] Fix | Delete
const checkedBlockNames = filteredBlockTypes.map(({
[27754] Fix | Delete
name
[27755] Fix | Delete
}) => name).filter(type => !(hiddenBlockTypes !== null && hiddenBlockTypes !== void 0 ? hiddenBlockTypes : []).includes(type));
[27756] Fix | Delete
const titleId = 'editor-block-manager__category-title-' + instanceId;
[27757] Fix | Delete
const isAllChecked = checkedBlockNames.length === filteredBlockTypes.length;
[27758] Fix | Delete
const isIndeterminate = !isAllChecked && checkedBlockNames.length > 0;
[27759] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[27760] Fix | Delete
role: "group",
[27761] Fix | Delete
"aria-labelledby": titleId,
[27762] Fix | Delete
className: "editor-block-manager__category",
[27763] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
[27764] Fix | Delete
__nextHasNoMarginBottom: true,
[27765] Fix | Delete
checked: isAllChecked,
[27766] Fix | Delete
onChange: toggleAllVisible,
[27767] Fix | Delete
className: "editor-block-manager__category-title",
[27768] Fix | Delete
indeterminate: isIndeterminate,
[27769] Fix | Delete
label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[27770] Fix | Delete
id: titleId,
[27771] Fix | Delete
children: title
[27772] Fix | Delete
})
[27773] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(checklist, {
[27774] Fix | Delete
blockTypes: filteredBlockTypes,
[27775] Fix | Delete
value: checkedBlockNames,
[27776] Fix | Delete
onItemChange: toggleVisible
[27777] Fix | Delete
})]
[27778] Fix | Delete
});
[27779] Fix | Delete
}
[27780] Fix | Delete
/* harmony default export */ const block_manager_category = (BlockManagerCategory);
[27781] Fix | Delete
[27782] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-manager/index.js
[27783] Fix | Delete
/**
[27784] Fix | Delete
* WordPress dependencies
[27785] Fix | Delete
*/
[27786] Fix | Delete
[27787] Fix | Delete
[27788] Fix | Delete
[27789] Fix | Delete
[27790] Fix | Delete
[27791] Fix | Delete
[27792] Fix | Delete
[27793] Fix | Delete
[27794] Fix | Delete
[27795] Fix | Delete
/**
[27796] Fix | Delete
* Internal dependencies
[27797] Fix | Delete
*/
[27798] Fix | Delete
[27799] Fix | Delete
[27800] Fix | Delete
[27801] Fix | Delete
[27802] Fix | Delete
[27803] Fix | Delete
function BlockManager({
[27804] Fix | Delete
blockTypes,
[27805] Fix | Delete
categories,
[27806] Fix | Delete
hasBlockSupport,
[27807] Fix | Delete
isMatchingSearchTerm,
[27808] Fix | Delete
numberOfHiddenBlocks,
[27809] Fix | Delete
enableAllBlockTypes
[27810] Fix | Delete
}) {
[27811] Fix | Delete
const debouncedSpeak = (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500);
[27812] Fix | Delete
const [search, setSearch] = (0,external_wp_element_namespaceObject.useState)('');
[27813] Fix | Delete
[27814] Fix | Delete
// Filtering occurs here (as opposed to `withSelect`) to avoid
[27815] Fix | Delete
// wasted renders by consequence of `Array#filter` producing
[27816] Fix | Delete
// a new value reference on each call.
[27817] Fix | Delete
blockTypes = blockTypes.filter(blockType => hasBlockSupport(blockType, 'inserter', true) && (!search || isMatchingSearchTerm(blockType, search)) && (!blockType.parent || blockType.parent.includes('core/post-content')));
[27818] Fix | Delete
[27819] Fix | Delete
// Announce search results on change
[27820] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[27821] Fix | Delete
if (!search) {
[27822] Fix | Delete
return;
[27823] Fix | Delete
}
[27824] Fix | Delete
const count = blockTypes.length;
[27825] Fix | Delete
const resultsFoundMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
[27826] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', count), count);
[27827] Fix | Delete
debouncedSpeak(resultsFoundMessage);
[27828] Fix | Delete
}, [blockTypes.length, search, debouncedSpeak]);
[27829] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[27830] Fix | Delete
className: "editor-block-manager__content",
[27831] Fix | Delete
children: [!!numberOfHiddenBlocks && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[27832] Fix | Delete
className: "editor-block-manager__disabled-blocks-count",
[27833] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of blocks. */
[27834] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('%d block is hidden.', '%d blocks are hidden.', numberOfHiddenBlocks), numberOfHiddenBlocks), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[27835] Fix | Delete
variant: "link",
[27836] Fix | Delete
onClick: () => enableAllBlockTypes(blockTypes),
[27837] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Reset')
[27838] Fix | Delete
})]
[27839] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SearchControl, {
[27840] Fix | Delete
__nextHasNoMarginBottom: true,
[27841] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
[27842] Fix | Delete
placeholder: (0,external_wp_i18n_namespaceObject.__)('Search for a block'),
[27843] Fix | Delete
value: search,
[27844] Fix | Delete
onChange: nextSearch => setSearch(nextSearch),
[27845] Fix | Delete
className: "editor-block-manager__search"
[27846] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[27847] Fix | Delete
tabIndex: "0",
[27848] Fix | Delete
role: "region",
[27849] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Available block types'),
[27850] Fix | Delete
className: "editor-block-manager__results",
[27851] Fix | Delete
children: [blockTypes.length === 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[27852] Fix | Delete
className: "editor-block-manager__no-results",
[27853] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('No blocks found.')
[27854] Fix | Delete
}), categories.map(category => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_manager_category, {
[27855] Fix | Delete
title: category.title,
[27856] Fix | Delete
blockTypes: blockTypes.filter(blockType => blockType.category === category.slug)
[27857] Fix | Delete
}, category.slug)), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_manager_category, {
[27858] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Uncategorized'),
[27859] Fix | Delete
blockTypes: blockTypes.filter(({
[27860] Fix | Delete
category
[27861] Fix | Delete
}) => !category)
[27862] Fix | Delete
})]
[27863] Fix | Delete
})]
[27864] Fix | Delete
});
[27865] Fix | Delete
}
[27866] Fix | Delete
/* harmony default export */ const block_manager = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => {
[27867] Fix | Delete
var _get;
[27868] Fix | Delete
const {
[27869] Fix | Delete
getBlockTypes,
[27870] Fix | Delete
getCategories,
[27871] Fix | Delete
hasBlockSupport,
[27872] Fix | Delete
isMatchingSearchTerm
[27873] Fix | Delete
} = select(external_wp_blocks_namespaceObject.store);
[27874] Fix | Delete
const {
[27875] Fix | Delete
get
[27876] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[27877] Fix | Delete
[27878] Fix | Delete
// Some hidden blocks become unregistered
[27879] Fix | Delete
// by removing for instance the plugin that registered them, yet
[27880] Fix | Delete
// they're still remain as hidden by the user's action.
[27881] Fix | Delete
// We consider "hidden", blocks which were hidden and
[27882] Fix | Delete
// are still registered.
[27883] Fix | Delete
const blockTypes = getBlockTypes();
[27884] Fix | Delete
const hiddenBlockTypes = ((_get = get('core', 'hiddenBlockTypes')) !== null && _get !== void 0 ? _get : []).filter(hiddenBlock => {
[27885] Fix | Delete
return blockTypes.some(registeredBlock => registeredBlock.name === hiddenBlock);
[27886] Fix | Delete
});
[27887] Fix | Delete
const numberOfHiddenBlocks = Array.isArray(hiddenBlockTypes) && hiddenBlockTypes.length;
[27888] Fix | Delete
return {
[27889] Fix | Delete
blockTypes,
[27890] Fix | Delete
categories: getCategories(),
[27891] Fix | Delete
hasBlockSupport,
[27892] Fix | Delete
isMatchingSearchTerm,
[27893] Fix | Delete
numberOfHiddenBlocks
[27894] Fix | Delete
};
[27895] Fix | Delete
}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
[27896] Fix | Delete
const {
[27897] Fix | Delete
showBlockTypes
[27898] Fix | Delete
} = unlock(dispatch(store_store));
[27899] Fix | Delete
return {
[27900] Fix | Delete
enableAllBlockTypes: blockTypes => {
[27901] Fix | Delete
const blockNames = blockTypes.map(({
[27902] Fix | Delete
name
[27903] Fix | Delete
}) => name);
[27904] Fix | Delete
showBlockTypes(blockNames);
[27905] Fix | Delete
}
[27906] Fix | Delete
};
[27907] Fix | Delete
})])(BlockManager));
[27908] Fix | Delete
[27909] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/index.js
[27910] Fix | Delete
/**
[27911] Fix | Delete
* WordPress dependencies
[27912] Fix | Delete
*/
[27913] Fix | Delete
[27914] Fix | Delete
[27915] Fix | Delete
[27916] Fix | Delete
[27917] Fix | Delete
[27918] Fix | Delete
[27919] Fix | Delete
[27920] Fix | Delete
[27921] Fix | Delete
/**
[27922] Fix | Delete
* Internal dependencies
[27923] Fix | Delete
*/
[27924] Fix | Delete
[27925] Fix | Delete
[27926] Fix | Delete
[27927] Fix | Delete
[27928] Fix | Delete
[27929] Fix | Delete
[27930] Fix | Delete
[27931] Fix | Delete
[27932] Fix | Delete
[27933] Fix | Delete
[27934] Fix | Delete
[27935] Fix | Delete
[27936] Fix | Delete
[27937] Fix | Delete
[27938] Fix | Delete
const {
[27939] Fix | Delete
PreferencesModal,
[27940] Fix | Delete
PreferencesModalTabs,
[27941] Fix | Delete
PreferencesModalSection,
[27942] Fix | Delete
PreferenceToggleControl
[27943] Fix | Delete
} = unlock(external_wp_preferences_namespaceObject.privateApis);
[27944] Fix | Delete
function EditorPreferencesModal({
[27945] Fix | Delete
extraSections = {}
[27946] Fix | Delete
}) {
[27947] Fix | Delete
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
[27948] Fix | Delete
const {
[27949] Fix | Delete
isActive,
[27950] Fix | Delete
showBlockBreadcrumbsOption
[27951] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[27952] Fix | Delete
const {
[27953] Fix | Delete
getEditorSettings
[27954] Fix | Delete
} = select(store_store);
[27955] Fix | Delete
const {
[27956] Fix | Delete
get
[27957] Fix | Delete
} = select(external_wp_preferences_namespaceObject.store);
[27958] Fix | Delete
const {
[27959] Fix | Delete
isModalActive
[27960] Fix | Delete
} = select(store);
[27961] Fix | Delete
const isRichEditingEnabled = getEditorSettings().richEditingEnabled;
[27962] Fix | Delete
const isDistractionFreeEnabled = get('core', 'distractionFree');
[27963] Fix | Delete
return {
[27964] Fix | Delete
showBlockBreadcrumbsOption: !isDistractionFreeEnabled && isLargeViewport && isRichEditingEnabled,
[27965] Fix | Delete
isActive: isModalActive('editor/preferences')
[27966] Fix | Delete
};
[27967] Fix | Delete
}, [isLargeViewport]);
[27968] Fix | Delete
const {
[27969] Fix | Delete
closeModal
[27970] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[27971] Fix | Delete
const {
[27972] Fix | Delete
setIsListViewOpened,
[27973] Fix | Delete
setIsInserterOpened
[27974] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[27975] Fix | Delete
const {
[27976] Fix | Delete
set: setPreference
[27977] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
[27978] Fix | Delete
const sections = (0,external_wp_element_namespaceObject.useMemo)(() => [{
[27979] Fix | Delete
name: 'general',
[27980] Fix | Delete
tabLabel: (0,external_wp_i18n_namespaceObject.__)('General'),
[27981] Fix | Delete
content: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[27982] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PreferencesModalSection, {
[27983] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Interface'),
[27984] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
[27985] Fix | Delete
scope: "core",
[27986] Fix | Delete
featureName: "showListViewByDefault",
[27987] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Opens the List View sidebar by default.'),
[27988] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Always open List View')
[27989] Fix | Delete
}), showBlockBreadcrumbsOption && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
[27990] Fix | Delete
scope: "core",
[27991] Fix | Delete
featureName: "showBlockBreadcrumbs",
[27992] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Display the block hierarchy trail at the bottom of the editor.'),
[27993] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Show block breadcrumbs')
[27994] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferenceToggleControl, {
[27995] Fix | Delete
scope: "core",
[27996] Fix | Delete
featureName: "allowRightClickOverrides",
[27997] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Allows contextual List View menus via right-click, overriding browser defaults.'),
[27998] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Allow right-click contextual menus')
[27999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function