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
registerShortcut({
[8500] Fix | Delete
name: 'core/editor/undo',
[8501] Fix | Delete
category: 'global',
[8502] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Undo your last changes.'),
[8503] Fix | Delete
keyCombination: {
[8504] Fix | Delete
modifier: 'primary',
[8505] Fix | Delete
character: 'z'
[8506] Fix | Delete
}
[8507] Fix | Delete
});
[8508] Fix | Delete
registerShortcut({
[8509] Fix | Delete
name: 'core/editor/redo',
[8510] Fix | Delete
category: 'global',
[8511] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Redo your last undo.'),
[8512] Fix | Delete
keyCombination: {
[8513] Fix | Delete
modifier: 'primaryShift',
[8514] Fix | Delete
character: 'z'
[8515] Fix | Delete
},
[8516] Fix | Delete
// Disable on Apple OS because it conflicts with the browser's
[8517] Fix | Delete
// history shortcut. It's a fine alias for both Windows and Linux.
[8518] Fix | Delete
// Since there's no conflict for Ctrl+Shift+Z on both Windows and
[8519] Fix | Delete
// Linux, we keep it as the default for consistency.
[8520] Fix | Delete
aliases: (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? [] : [{
[8521] Fix | Delete
modifier: 'primary',
[8522] Fix | Delete
character: 'y'
[8523] Fix | Delete
}]
[8524] Fix | Delete
});
[8525] Fix | Delete
registerShortcut({
[8526] Fix | Delete
name: 'core/editor/toggle-list-view',
[8527] Fix | Delete
category: 'global',
[8528] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Open the List View.'),
[8529] Fix | Delete
keyCombination: {
[8530] Fix | Delete
modifier: 'access',
[8531] Fix | Delete
character: 'o'
[8532] Fix | Delete
}
[8533] Fix | Delete
});
[8534] Fix | Delete
registerShortcut({
[8535] Fix | Delete
name: 'core/editor/toggle-distraction-free',
[8536] Fix | Delete
category: 'global',
[8537] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Toggle distraction free mode.'),
[8538] Fix | Delete
keyCombination: {
[8539] Fix | Delete
modifier: 'primaryShift',
[8540] Fix | Delete
character: '\\'
[8541] Fix | Delete
}
[8542] Fix | Delete
});
[8543] Fix | Delete
registerShortcut({
[8544] Fix | Delete
name: 'core/editor/toggle-sidebar',
[8545] Fix | Delete
category: 'global',
[8546] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Show or hide the Settings sidebar.'),
[8547] Fix | Delete
keyCombination: {
[8548] Fix | Delete
modifier: 'primaryShift',
[8549] Fix | Delete
character: ','
[8550] Fix | Delete
}
[8551] Fix | Delete
});
[8552] Fix | Delete
registerShortcut({
[8553] Fix | Delete
name: 'core/editor/keyboard-shortcuts',
[8554] Fix | Delete
category: 'main',
[8555] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Display these keyboard shortcuts.'),
[8556] Fix | Delete
keyCombination: {
[8557] Fix | Delete
modifier: 'access',
[8558] Fix | Delete
character: 'h'
[8559] Fix | Delete
}
[8560] Fix | Delete
});
[8561] Fix | Delete
registerShortcut({
[8562] Fix | Delete
name: 'core/editor/next-region',
[8563] Fix | Delete
category: 'global',
[8564] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the next part of the editor.'),
[8565] Fix | Delete
keyCombination: {
[8566] Fix | Delete
modifier: 'ctrl',
[8567] Fix | Delete
character: '`'
[8568] Fix | Delete
},
[8569] Fix | Delete
aliases: [{
[8570] Fix | Delete
modifier: 'access',
[8571] Fix | Delete
character: 'n'
[8572] Fix | Delete
}]
[8573] Fix | Delete
});
[8574] Fix | Delete
registerShortcut({
[8575] Fix | Delete
name: 'core/editor/previous-region',
[8576] Fix | Delete
category: 'global',
[8577] Fix | Delete
description: (0,external_wp_i18n_namespaceObject.__)('Navigate to the previous part of the editor.'),
[8578] Fix | Delete
keyCombination: {
[8579] Fix | Delete
modifier: 'ctrlShift',
[8580] Fix | Delete
character: '`'
[8581] Fix | Delete
},
[8582] Fix | Delete
aliases: [{
[8583] Fix | Delete
modifier: 'access',
[8584] Fix | Delete
character: 'p'
[8585] Fix | Delete
}, {
[8586] Fix | Delete
modifier: 'ctrlShift',
[8587] Fix | Delete
character: '~'
[8588] Fix | Delete
}]
[8589] Fix | Delete
});
[8590] Fix | Delete
}, [registerShortcut]);
[8591] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockEditorKeyboardShortcuts.Register, {});
[8592] Fix | Delete
}
[8593] Fix | Delete
/* harmony default export */ const register_shortcuts = (EditorKeyboardShortcutsRegister);
[8594] Fix | Delete
[8595] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/redo.js
[8596] Fix | Delete
/**
[8597] Fix | Delete
* WordPress dependencies
[8598] Fix | Delete
*/
[8599] Fix | Delete
[8600] Fix | Delete
[8601] Fix | Delete
const redo_redo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[8602] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[8603] Fix | Delete
viewBox: "0 0 24 24",
[8604] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[8605] Fix | Delete
d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"
[8606] Fix | Delete
})
[8607] Fix | Delete
});
[8608] Fix | Delete
/* harmony default export */ const library_redo = (redo_redo);
[8609] Fix | Delete
[8610] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js
[8611] Fix | Delete
/**
[8612] Fix | Delete
* WordPress dependencies
[8613] Fix | Delete
*/
[8614] Fix | Delete
[8615] Fix | Delete
[8616] Fix | Delete
const undo_undo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[8617] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[8618] Fix | Delete
viewBox: "0 0 24 24",
[8619] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[8620] Fix | Delete
d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"
[8621] Fix | Delete
})
[8622] Fix | Delete
});
[8623] Fix | Delete
/* harmony default export */ const library_undo = (undo_undo);
[8624] Fix | Delete
[8625] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-history/redo.js
[8626] Fix | Delete
/**
[8627] Fix | Delete
* WordPress dependencies
[8628] Fix | Delete
*/
[8629] Fix | Delete
[8630] Fix | Delete
[8631] Fix | Delete
[8632] Fix | Delete
[8633] Fix | Delete
[8634] Fix | Delete
[8635] Fix | Delete
[8636] Fix | Delete
/**
[8637] Fix | Delete
* Internal dependencies
[8638] Fix | Delete
*/
[8639] Fix | Delete
[8640] Fix | Delete
[8641] Fix | Delete
function EditorHistoryRedo(props, ref) {
[8642] Fix | Delete
const shortcut = (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('z') : external_wp_keycodes_namespaceObject.displayShortcut.primary('y');
[8643] Fix | Delete
const hasRedo = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).hasEditorRedo(), []);
[8644] Fix | Delete
const {
[8645] Fix | Delete
redo
[8646] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[8647] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[8648] Fix | Delete
...props,
[8649] Fix | Delete
ref: ref,
[8650] Fix | Delete
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_redo : library_undo
[8651] Fix | Delete
/* translators: button label text should, if possible, be under 16 characters. */,
[8652] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Redo'),
[8653] Fix | Delete
shortcut: shortcut
[8654] Fix | Delete
// If there are no redo levels we don't want to actually disable this
[8655] Fix | Delete
// button, because it will remove focus for keyboard users.
[8656] Fix | Delete
// See: https://github.com/WordPress/gutenberg/issues/3486
[8657] Fix | Delete
,
[8658] Fix | Delete
"aria-disabled": !hasRedo,
[8659] Fix | Delete
onClick: hasRedo ? redo : undefined,
[8660] Fix | Delete
className: "editor-history__redo"
[8661] Fix | Delete
});
[8662] Fix | Delete
}
[8663] Fix | Delete
[8664] Fix | Delete
/** @typedef {import('react').Ref<HTMLElement>} Ref */
[8665] Fix | Delete
[8666] Fix | Delete
/**
[8667] Fix | Delete
* Renders the redo button for the editor history.
[8668] Fix | Delete
*
[8669] Fix | Delete
* @param {Object} props - Props.
[8670] Fix | Delete
* @param {Ref} ref - Forwarded ref.
[8671] Fix | Delete
*
[8672] Fix | Delete
* @return {Component} The component to be rendered.
[8673] Fix | Delete
*/
[8674] Fix | Delete
/* harmony default export */ const editor_history_redo = ((0,external_wp_element_namespaceObject.forwardRef)(EditorHistoryRedo));
[8675] Fix | Delete
[8676] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-history/undo.js
[8677] Fix | Delete
/**
[8678] Fix | Delete
* WordPress dependencies
[8679] Fix | Delete
*/
[8680] Fix | Delete
[8681] Fix | Delete
[8682] Fix | Delete
[8683] Fix | Delete
[8684] Fix | Delete
[8685] Fix | Delete
[8686] Fix | Delete
[8687] Fix | Delete
/**
[8688] Fix | Delete
* Internal dependencies
[8689] Fix | Delete
*/
[8690] Fix | Delete
[8691] Fix | Delete
[8692] Fix | Delete
function EditorHistoryUndo(props, ref) {
[8693] Fix | Delete
const hasUndo = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).hasEditorUndo(), []);
[8694] Fix | Delete
const {
[8695] Fix | Delete
undo
[8696] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[8697] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[8698] Fix | Delete
...props,
[8699] Fix | Delete
ref: ref,
[8700] Fix | Delete
icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? library_undo : library_redo
[8701] Fix | Delete
/* translators: button label text should, if possible, be under 16 characters. */,
[8702] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Undo'),
[8703] Fix | Delete
shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('z')
[8704] Fix | Delete
// If there are no undo levels we don't want to actually disable this
[8705] Fix | Delete
// button, because it will remove focus for keyboard users.
[8706] Fix | Delete
// See: https://github.com/WordPress/gutenberg/issues/3486
[8707] Fix | Delete
,
[8708] Fix | Delete
"aria-disabled": !hasUndo,
[8709] Fix | Delete
onClick: hasUndo ? undo : undefined,
[8710] Fix | Delete
className: "editor-history__undo"
[8711] Fix | Delete
});
[8712] Fix | Delete
}
[8713] Fix | Delete
[8714] Fix | Delete
/** @typedef {import('react').Ref<HTMLElement>} Ref */
[8715] Fix | Delete
[8716] Fix | Delete
/**
[8717] Fix | Delete
* Renders the undo button for the editor history.
[8718] Fix | Delete
*
[8719] Fix | Delete
* @param {Object} props - Props.
[8720] Fix | Delete
* @param {Ref} ref - Forwarded ref.
[8721] Fix | Delete
*
[8722] Fix | Delete
* @return {Component} The component to be rendered.
[8723] Fix | Delete
*/
[8724] Fix | Delete
/* harmony default export */ const editor_history_undo = ((0,external_wp_element_namespaceObject.forwardRef)(EditorHistoryUndo));
[8725] Fix | Delete
[8726] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/template-validation-notice/index.js
[8727] Fix | Delete
/**
[8728] Fix | Delete
* WordPress dependencies
[8729] Fix | Delete
*/
[8730] Fix | Delete
[8731] Fix | Delete
[8732] Fix | Delete
[8733] Fix | Delete
[8734] Fix | Delete
[8735] Fix | Delete
[8736] Fix | Delete
[8737] Fix | Delete
[8738] Fix | Delete
function TemplateValidationNotice() {
[8739] Fix | Delete
const [showConfirmDialog, setShowConfirmDialog] = (0,external_wp_element_namespaceObject.useState)(false);
[8740] Fix | Delete
const isValid = (0,external_wp_data_namespaceObject.useSelect)(select => {
[8741] Fix | Delete
return select(external_wp_blockEditor_namespaceObject.store).isValidTemplate();
[8742] Fix | Delete
}, []);
[8743] Fix | Delete
const {
[8744] Fix | Delete
setTemplateValidity,
[8745] Fix | Delete
synchronizeTemplate
[8746] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
[8747] Fix | Delete
if (isValid) {
[8748] Fix | Delete
return null;
[8749] Fix | Delete
}
[8750] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[8751] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Notice, {
[8752] Fix | Delete
className: "editor-template-validation-notice",
[8753] Fix | Delete
isDismissible: false,
[8754] Fix | Delete
status: "warning",
[8755] Fix | Delete
actions: [{
[8756] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Keep it as is'),
[8757] Fix | Delete
onClick: () => setTemplateValidity(true)
[8758] Fix | Delete
}, {
[8759] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Reset the template'),
[8760] Fix | Delete
onClick: () => setShowConfirmDialog(true)
[8761] Fix | Delete
}],
[8762] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('The content of your post doesn’t match the template assigned to your post type.')
[8763] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalConfirmDialog, {
[8764] Fix | Delete
isOpen: showConfirmDialog,
[8765] Fix | Delete
confirmButtonText: (0,external_wp_i18n_namespaceObject.__)('Reset'),
[8766] Fix | Delete
onConfirm: () => {
[8767] Fix | Delete
setShowConfirmDialog(false);
[8768] Fix | Delete
synchronizeTemplate();
[8769] Fix | Delete
},
[8770] Fix | Delete
onCancel: () => setShowConfirmDialog(false),
[8771] Fix | Delete
size: "medium",
[8772] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Resetting the template may result in loss of content, do you want to continue?')
[8773] Fix | Delete
})]
[8774] Fix | Delete
});
[8775] Fix | Delete
}
[8776] Fix | Delete
[8777] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-notices/index.js
[8778] Fix | Delete
/**
[8779] Fix | Delete
* WordPress dependencies
[8780] Fix | Delete
*/
[8781] Fix | Delete
[8782] Fix | Delete
[8783] Fix | Delete
[8784] Fix | Delete
[8785] Fix | Delete
/**
[8786] Fix | Delete
* Internal dependencies
[8787] Fix | Delete
*/
[8788] Fix | Delete
[8789] Fix | Delete
[8790] Fix | Delete
/**
[8791] Fix | Delete
* This component renders the notices displayed in the editor. It displays pinned notices first, followed by dismissible
[8792] Fix | Delete
*
[8793] Fix | Delete
* @example
[8794] Fix | Delete
* ```jsx
[8795] Fix | Delete
* <EditorNotices />
[8796] Fix | Delete
* ```
[8797] Fix | Delete
*
[8798] Fix | Delete
* @return {JSX.Element} The rendered EditorNotices component.
[8799] Fix | Delete
*/
[8800] Fix | Delete
[8801] Fix | Delete
[8802] Fix | Delete
[8803] Fix | Delete
function EditorNotices() {
[8804] Fix | Delete
const {
[8805] Fix | Delete
notices
[8806] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => ({
[8807] Fix | Delete
notices: select(external_wp_notices_namespaceObject.store).getNotices()
[8808] Fix | Delete
}), []);
[8809] Fix | Delete
const {
[8810] Fix | Delete
removeNotice
[8811] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
[8812] Fix | Delete
const dismissibleNotices = notices.filter(({
[8813] Fix | Delete
isDismissible,
[8814] Fix | Delete
type
[8815] Fix | Delete
}) => isDismissible && type === 'default');
[8816] Fix | Delete
const nonDismissibleNotices = notices.filter(({
[8817] Fix | Delete
isDismissible,
[8818] Fix | Delete
type
[8819] Fix | Delete
}) => !isDismissible && type === 'default');
[8820] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[8821] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
[8822] Fix | Delete
notices: nonDismissibleNotices,
[8823] Fix | Delete
className: "components-editor-notices__pinned"
[8824] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.NoticeList, {
[8825] Fix | Delete
notices: dismissibleNotices,
[8826] Fix | Delete
className: "components-editor-notices__dismissible",
[8827] Fix | Delete
onRemove: removeNotice,
[8828] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateValidationNotice, {})
[8829] Fix | Delete
})]
[8830] Fix | Delete
});
[8831] Fix | Delete
}
[8832] Fix | Delete
/* harmony default export */ const editor_notices = (EditorNotices);
[8833] Fix | Delete
[8834] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/editor-snackbars/index.js
[8835] Fix | Delete
/**
[8836] Fix | Delete
* WordPress dependencies
[8837] Fix | Delete
*/
[8838] Fix | Delete
[8839] Fix | Delete
[8840] Fix | Delete
[8841] Fix | Delete
[8842] Fix | Delete
// Last three notices. Slices from the tail end of the list.
[8843] Fix | Delete
[8844] Fix | Delete
const MAX_VISIBLE_NOTICES = -3;
[8845] Fix | Delete
[8846] Fix | Delete
/**
[8847] Fix | Delete
* Renders the editor snackbars component.
[8848] Fix | Delete
*
[8849] Fix | Delete
* @return {JSX.Element} The rendered component.
[8850] Fix | Delete
*/
[8851] Fix | Delete
function EditorSnackbars() {
[8852] Fix | Delete
const notices = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_notices_namespaceObject.store).getNotices(), []);
[8853] Fix | Delete
const {
[8854] Fix | Delete
removeNotice
[8855] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
[8856] Fix | Delete
const snackbarNotices = notices.filter(({
[8857] Fix | Delete
type
[8858] Fix | Delete
}) => type === 'snackbar').slice(MAX_VISIBLE_NOTICES);
[8859] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.SnackbarList, {
[8860] Fix | Delete
notices: snackbarNotices,
[8861] Fix | Delete
className: "components-editor-notices__snackbar",
[8862] Fix | Delete
onRemove: removeNotice
[8863] Fix | Delete
});
[8864] Fix | Delete
}
[8865] Fix | Delete
[8866] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-record-item.js
[8867] Fix | Delete
/**
[8868] Fix | Delete
* WordPress dependencies
[8869] Fix | Delete
*/
[8870] Fix | Delete
[8871] Fix | Delete
[8872] Fix | Delete
[8873] Fix | Delete
[8874] Fix | Delete
[8875] Fix | Delete
[8876] Fix | Delete
/**
[8877] Fix | Delete
* Internal dependencies
[8878] Fix | Delete
*/
[8879] Fix | Delete
[8880] Fix | Delete
[8881] Fix | Delete
[8882] Fix | Delete
[8883] Fix | Delete
[8884] Fix | Delete
function EntityRecordItem({
[8885] Fix | Delete
record,
[8886] Fix | Delete
checked,
[8887] Fix | Delete
onChange
[8888] Fix | Delete
}) {
[8889] Fix | Delete
const {
[8890] Fix | Delete
name,
[8891] Fix | Delete
kind,
[8892] Fix | Delete
title,
[8893] Fix | Delete
key
[8894] Fix | Delete
} = record;
[8895] Fix | Delete
[8896] Fix | Delete
// Handle templates that might use default descriptive titles.
[8897] Fix | Delete
const {
[8898] Fix | Delete
entityRecordTitle,
[8899] Fix | Delete
hasPostMetaChanges
[8900] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[8901] Fix | Delete
if ('postType' !== kind || 'wp_template' !== name) {
[8902] Fix | Delete
return {
[8903] Fix | Delete
entityRecordTitle: title,
[8904] Fix | Delete
hasPostMetaChanges: unlock(select(store_store)).hasPostMetaChanges(name, key)
[8905] Fix | Delete
};
[8906] Fix | Delete
}
[8907] Fix | Delete
const template = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(kind, name, key);
[8908] Fix | Delete
return {
[8909] Fix | Delete
entityRecordTitle: select(store_store).__experimentalGetTemplateInfo(template).title,
[8910] Fix | Delete
hasPostMetaChanges: unlock(select(store_store)).hasPostMetaChanges(name, key)
[8911] Fix | Delete
};
[8912] Fix | Delete
}, [name, kind, title, key]);
[8913] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[8914] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
[8915] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
[8916] Fix | Delete
__nextHasNoMarginBottom: true,
[8917] Fix | Delete
label: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(entityRecordTitle) || (0,external_wp_i18n_namespaceObject.__)('Untitled'),
[8918] Fix | Delete
checked: checked,
[8919] Fix | Delete
onChange: onChange
[8920] Fix | Delete
})
[8921] Fix | Delete
}), hasPostMetaChanges && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
[8922] Fix | Delete
className: "entities-saved-states__changes",
[8923] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
[8924] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Post Meta.')
[8925] Fix | Delete
})
[8926] Fix | Delete
})]
[8927] Fix | Delete
});
[8928] Fix | Delete
}
[8929] Fix | Delete
[8930] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/entities-saved-states/entity-type-list.js
[8931] Fix | Delete
/**
[8932] Fix | Delete
* WordPress dependencies
[8933] Fix | Delete
*/
[8934] Fix | Delete
[8935] Fix | Delete
[8936] Fix | Delete
[8937] Fix | Delete
[8938] Fix | Delete
[8939] Fix | Delete
[8940] Fix | Delete
[8941] Fix | Delete
/**
[8942] Fix | Delete
* Internal dependencies
[8943] Fix | Delete
*/
[8944] Fix | Delete
[8945] Fix | Delete
[8946] Fix | Delete
[8947] Fix | Delete
[8948] Fix | Delete
const {
[8949] Fix | Delete
getGlobalStylesChanges,
[8950] Fix | Delete
GlobalStylesContext
[8951] Fix | Delete
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
[8952] Fix | Delete
function getEntityDescription(entity, count) {
[8953] Fix | Delete
switch (entity) {
[8954] Fix | Delete
case 'site':
[8955] Fix | Delete
return 1 === count ? (0,external_wp_i18n_namespaceObject.__)('This change will affect your whole site.') : (0,external_wp_i18n_namespaceObject.__)('These changes will affect your whole site.');
[8956] Fix | Delete
case 'wp_template':
[8957] Fix | Delete
return (0,external_wp_i18n_namespaceObject.__)('This change will affect pages and posts that use this template.');
[8958] Fix | Delete
case 'page':
[8959] Fix | Delete
case 'post':
[8960] Fix | Delete
return (0,external_wp_i18n_namespaceObject.__)('The following has been modified.');
[8961] Fix | Delete
}
[8962] Fix | Delete
}
[8963] Fix | Delete
function GlobalStylesDescription({
[8964] Fix | Delete
record
[8965] Fix | Delete
}) {
[8966] Fix | Delete
const {
[8967] Fix | Delete
user: currentEditorGlobalStyles
[8968] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
[8969] Fix | Delete
const savedRecord = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecord(record.kind, record.name, record.key), [record.kind, record.name, record.key]);
[8970] Fix | Delete
const globalStylesChanges = getGlobalStylesChanges(currentEditorGlobalStyles, savedRecord, {
[8971] Fix | Delete
maxResults: 10
[8972] Fix | Delete
});
[8973] Fix | Delete
return globalStylesChanges.length ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
[8974] Fix | Delete
className: "entities-saved-states__changes",
[8975] Fix | Delete
children: globalStylesChanges.map(change => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
[8976] Fix | Delete
children: change
[8977] Fix | Delete
}, change))
[8978] Fix | Delete
}) : null;
[8979] Fix | Delete
}
[8980] Fix | Delete
function EntityDescription({
[8981] Fix | Delete
record,
[8982] Fix | Delete
count
[8983] Fix | Delete
}) {
[8984] Fix | Delete
if ('globalStyles' === record?.name) {
[8985] Fix | Delete
return null;
[8986] Fix | Delete
}
[8987] Fix | Delete
const description = getEntityDescription(record?.name, count);
[8988] Fix | Delete
return description ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
[8989] Fix | Delete
children: description
[8990] Fix | Delete
}) : null;
[8991] Fix | Delete
}
[8992] Fix | Delete
function EntityTypeList({
[8993] Fix | Delete
list,
[8994] Fix | Delete
unselectedEntities,
[8995] Fix | Delete
setUnselectedEntities
[8996] Fix | Delete
}) {
[8997] Fix | Delete
const count = list.length;
[8998] Fix | Delete
const firstRecord = list[0];
[8999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function