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
title: (0,external_wp_i18n_namespaceObject.__)('Format'),
[26500] Fix | Delete
onClose: onClose
[26501] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostFormat, {})]
[26502] Fix | Delete
})
[26503] Fix | Delete
})
[26504] Fix | Delete
})
[26505] Fix | Delete
});
[26506] Fix | Delete
}
[26507] Fix | Delete
/* harmony default export */ const post_format_panel = (panel_PostFormat);
[26508] Fix | Delete
[26509] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-last-edited-panel/index.js
[26510] Fix | Delete
/**
[26511] Fix | Delete
* WordPress dependencies
[26512] Fix | Delete
*/
[26513] Fix | Delete
[26514] Fix | Delete
[26515] Fix | Delete
[26516] Fix | Delete
[26517] Fix | Delete
[26518] Fix | Delete
/**
[26519] Fix | Delete
* Internal dependencies
[26520] Fix | Delete
*/
[26521] Fix | Delete
[26522] Fix | Delete
[26523] Fix | Delete
function PostLastEditedPanel() {
[26524] Fix | Delete
const modified = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).getEditedPostAttribute('modified'), []);
[26525] Fix | Delete
const lastEditedText = modified && (0,external_wp_i18n_namespaceObject.sprintf)(
[26526] Fix | Delete
// translators: %s: Human-readable time difference, e.g. "2 days ago".
[26527] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Last edited %s.'), (0,external_wp_date_namespaceObject.humanTimeDiff)(modified));
[26528] Fix | Delete
if (!lastEditedText) {
[26529] Fix | Delete
return null;
[26530] Fix | Delete
}
[26531] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[26532] Fix | Delete
className: "editor-post-last-edited-panel",
[26533] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[26534] Fix | Delete
children: lastEditedText
[26535] Fix | Delete
})
[26536] Fix | Delete
});
[26537] Fix | Delete
}
[26538] Fix | Delete
[26539] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-panel-section/index.js
[26540] Fix | Delete
/**
[26541] Fix | Delete
* External dependencies
[26542] Fix | Delete
*/
[26543] Fix | Delete
[26544] Fix | Delete
[26545] Fix | Delete
/**
[26546] Fix | Delete
* WordPress dependencies
[26547] Fix | Delete
*/
[26548] Fix | Delete
[26549] Fix | Delete
[26550] Fix | Delete
function PostPanelSection({
[26551] Fix | Delete
className,
[26552] Fix | Delete
children
[26553] Fix | Delete
}) {
[26554] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
[26555] Fix | Delete
className: dist_clsx('editor-post-panel__section', className),
[26556] Fix | Delete
children: children
[26557] Fix | Delete
});
[26558] Fix | Delete
}
[26559] Fix | Delete
/* harmony default export */ const post_panel_section = (PostPanelSection);
[26560] Fix | Delete
[26561] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/blog-title/index.js
[26562] Fix | Delete
/**
[26563] Fix | Delete
* WordPress dependencies
[26564] Fix | Delete
*/
[26565] Fix | Delete
[26566] Fix | Delete
[26567] Fix | Delete
[26568] Fix | Delete
[26569] Fix | Delete
[26570] Fix | Delete
[26571] Fix | Delete
[26572] Fix | Delete
[26573] Fix | Delete
[26574] Fix | Delete
/**
[26575] Fix | Delete
* Internal dependencies
[26576] Fix | Delete
*/
[26577] Fix | Delete
[26578] Fix | Delete
[26579] Fix | Delete
[26580] Fix | Delete
[26581] Fix | Delete
[26582] Fix | Delete
[26583] Fix | Delete
const blog_title_EMPTY_OBJECT = {};
[26584] Fix | Delete
function BlogTitle() {
[26585] Fix | Delete
const {
[26586] Fix | Delete
editEntityRecord
[26587] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
[26588] Fix | Delete
const {
[26589] Fix | Delete
postsPageTitle,
[26590] Fix | Delete
postsPageId,
[26591] Fix | Delete
isTemplate,
[26592] Fix | Delete
postSlug
[26593] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[26594] Fix | Delete
const {
[26595] Fix | Delete
getEntityRecord,
[26596] Fix | Delete
getEditedEntityRecord
[26597] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[26598] Fix | Delete
const siteSettings = getEntityRecord('root', 'site');
[26599] Fix | Delete
const _postsPageRecord = siteSettings?.page_for_posts ? getEditedEntityRecord('postType', 'page', siteSettings?.page_for_posts) : blog_title_EMPTY_OBJECT;
[26600] Fix | Delete
const {
[26601] Fix | Delete
getEditedPostAttribute,
[26602] Fix | Delete
getCurrentPostType
[26603] Fix | Delete
} = select(store_store);
[26604] Fix | Delete
return {
[26605] Fix | Delete
postsPageId: _postsPageRecord?.id,
[26606] Fix | Delete
postsPageTitle: _postsPageRecord?.title,
[26607] Fix | Delete
isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
[26608] Fix | Delete
postSlug: getEditedPostAttribute('slug')
[26609] Fix | Delete
};
[26610] Fix | Delete
}, []);
[26611] Fix | Delete
// Use internal state instead of a ref to make sure that the component
[26612] Fix | Delete
// re-renders when the popover's anchor updates.
[26613] Fix | Delete
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
[26614] Fix | Delete
// Memoize popoverProps to avoid returning a new object every time.
[26615] Fix | Delete
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[26616] Fix | Delete
// Anchor the popover to the middle of the entire row so that it doesn't
[26617] Fix | Delete
// move around when the label changes.
[26618] Fix | Delete
anchor: popoverAnchor,
[26619] Fix | Delete
placement: 'left-start',
[26620] Fix | Delete
offset: 36,
[26621] Fix | Delete
shift: true
[26622] Fix | Delete
}), [popoverAnchor]);
[26623] Fix | Delete
if (!isTemplate || !['home', 'index'].includes(postSlug) || !postsPageId) {
[26624] Fix | Delete
return null;
[26625] Fix | Delete
}
[26626] Fix | Delete
const setPostsPageTitle = newValue => {
[26627] Fix | Delete
editEntityRecord('postType', 'page', postsPageId, {
[26628] Fix | Delete
title: newValue
[26629] Fix | Delete
});
[26630] Fix | Delete
};
[26631] Fix | Delete
const decodedTitle = (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(postsPageTitle);
[26632] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
[26633] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
[26634] Fix | Delete
ref: setPopoverAnchor,
[26635] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
[26636] Fix | Delete
popoverProps: popoverProps,
[26637] Fix | Delete
contentClassName: "editor-blog-title-dropdown__content",
[26638] Fix | Delete
focusOnMount: true,
[26639] Fix | Delete
renderToggle: ({
[26640] Fix | Delete
isOpen,
[26641] Fix | Delete
onToggle
[26642] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[26643] Fix | Delete
size: "compact",
[26644] Fix | Delete
variant: "tertiary",
[26645] Fix | Delete
"aria-expanded": isOpen,
[26646] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
[26647] Fix | Delete
// translators: %s: Current post link.
[26648] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('Change blog title: %s'), decodedTitle),
[26649] Fix | Delete
onClick: onToggle,
[26650] Fix | Delete
children: decodedTitle
[26651] Fix | Delete
}),
[26652] Fix | Delete
renderContent: ({
[26653] Fix | Delete
onClose
[26654] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[26655] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
[26656] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
[26657] Fix | Delete
onClose: onClose
[26658] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalInputControl, {
[26659] Fix | Delete
placeholder: (0,external_wp_i18n_namespaceObject.__)('No Title'),
[26660] Fix | Delete
size: "__unstable-large",
[26661] Fix | Delete
value: postsPageTitle,
[26662] Fix | Delete
onChange: (0,external_wp_compose_namespaceObject.debounce)(setPostsPageTitle, 300),
[26663] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Blog title'),
[26664] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Set the Posts Page title. Appears in search results, and when the page is shared on social media.'),
[26665] Fix | Delete
hideLabelFromVision: true
[26666] Fix | Delete
})]
[26667] Fix | Delete
})
[26668] Fix | Delete
})
[26669] Fix | Delete
});
[26670] Fix | Delete
}
[26671] Fix | Delete
[26672] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/posts-per-page/index.js
[26673] Fix | Delete
/**
[26674] Fix | Delete
* WordPress dependencies
[26675] Fix | Delete
*/
[26676] Fix | Delete
[26677] Fix | Delete
[26678] Fix | Delete
[26679] Fix | Delete
[26680] Fix | Delete
[26681] Fix | Delete
[26682] Fix | Delete
[26683] Fix | Delete
/**
[26684] Fix | Delete
* Internal dependencies
[26685] Fix | Delete
*/
[26686] Fix | Delete
[26687] Fix | Delete
[26688] Fix | Delete
[26689] Fix | Delete
[26690] Fix | Delete
[26691] Fix | Delete
[26692] Fix | Delete
function PostsPerPage() {
[26693] Fix | Delete
const {
[26694] Fix | Delete
editEntityRecord
[26695] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
[26696] Fix | Delete
const {
[26697] Fix | Delete
postsPerPage,
[26698] Fix | Delete
isTemplate,
[26699] Fix | Delete
postSlug
[26700] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[26701] Fix | Delete
const {
[26702] Fix | Delete
getEditedPostAttribute,
[26703] Fix | Delete
getCurrentPostType
[26704] Fix | Delete
} = select(store_store);
[26705] Fix | Delete
const {
[26706] Fix | Delete
getEditedEntityRecord
[26707] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[26708] Fix | Delete
const siteSettings = getEditedEntityRecord('root', 'site');
[26709] Fix | Delete
return {
[26710] Fix | Delete
isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
[26711] Fix | Delete
postSlug: getEditedPostAttribute('slug'),
[26712] Fix | Delete
postsPerPage: siteSettings?.posts_per_page || 1
[26713] Fix | Delete
};
[26714] Fix | Delete
}, []);
[26715] Fix | Delete
// Use internal state instead of a ref to make sure that the component
[26716] Fix | Delete
// re-renders when the popover's anchor updates.
[26717] Fix | Delete
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
[26718] Fix | Delete
// Memoize popoverProps to avoid returning a new object every time.
[26719] Fix | Delete
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[26720] Fix | Delete
// Anchor the popover to the middle of the entire row so that it doesn't
[26721] Fix | Delete
// move around when the label changes.
[26722] Fix | Delete
anchor: popoverAnchor,
[26723] Fix | Delete
placement: 'left-start',
[26724] Fix | Delete
offset: 36,
[26725] Fix | Delete
shift: true
[26726] Fix | Delete
}), [popoverAnchor]);
[26727] Fix | Delete
if (!isTemplate || !['home', 'index'].includes(postSlug)) {
[26728] Fix | Delete
return null;
[26729] Fix | Delete
}
[26730] Fix | Delete
const setPostsPerPage = newValue => {
[26731] Fix | Delete
editEntityRecord('root', 'site', undefined, {
[26732] Fix | Delete
posts_per_page: newValue
[26733] Fix | Delete
});
[26734] Fix | Delete
};
[26735] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
[26736] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
[26737] Fix | Delete
ref: setPopoverAnchor,
[26738] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
[26739] Fix | Delete
popoverProps: popoverProps,
[26740] Fix | Delete
contentClassName: "editor-posts-per-page-dropdown__content",
[26741] Fix | Delete
focusOnMount: true,
[26742] Fix | Delete
renderToggle: ({
[26743] Fix | Delete
isOpen,
[26744] Fix | Delete
onToggle
[26745] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[26746] Fix | Delete
size: "compact",
[26747] Fix | Delete
variant: "tertiary",
[26748] Fix | Delete
"aria-expanded": isOpen,
[26749] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Change posts per page'),
[26750] Fix | Delete
onClick: onToggle,
[26751] Fix | Delete
children: postsPerPage
[26752] Fix | Delete
}),
[26753] Fix | Delete
renderContent: ({
[26754] Fix | Delete
onClose
[26755] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[26756] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
[26757] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
[26758] Fix | Delete
onClose: onClose
[26759] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalNumberControl, {
[26760] Fix | Delete
placeholder: 0,
[26761] Fix | Delete
value: postsPerPage,
[26762] Fix | Delete
size: "__unstable-large",
[26763] Fix | Delete
spinControls: "custom",
[26764] Fix | Delete
step: "1",
[26765] Fix | Delete
min: "1",
[26766] Fix | Delete
onChange: setPostsPerPage,
[26767] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Posts per page'),
[26768] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.'),
[26769] Fix | Delete
hideLabelFromVision: true
[26770] Fix | Delete
})]
[26771] Fix | Delete
})
[26772] Fix | Delete
})
[26773] Fix | Delete
});
[26774] Fix | Delete
}
[26775] Fix | Delete
[26776] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/site-discussion/index.js
[26777] Fix | Delete
/**
[26778] Fix | Delete
* WordPress dependencies
[26779] Fix | Delete
*/
[26780] Fix | Delete
[26781] Fix | Delete
[26782] Fix | Delete
[26783] Fix | Delete
[26784] Fix | Delete
[26785] Fix | Delete
[26786] Fix | Delete
[26787] Fix | Delete
/**
[26788] Fix | Delete
* Internal dependencies
[26789] Fix | Delete
*/
[26790] Fix | Delete
[26791] Fix | Delete
[26792] Fix | Delete
[26793] Fix | Delete
[26794] Fix | Delete
[26795] Fix | Delete
[26796] Fix | Delete
const site_discussion_COMMENT_OPTIONS = [{
[26797] Fix | Delete
label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[26798] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('Open'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[26799] Fix | Delete
variant: "muted",
[26800] Fix | Delete
size: 12,
[26801] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Visitors can add new comments and replies.')
[26802] Fix | Delete
})]
[26803] Fix | Delete
}),
[26804] Fix | Delete
value: 'open'
[26805] Fix | Delete
}, {
[26806] Fix | Delete
label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[26807] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('Closed'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[26808] Fix | Delete
variant: "muted",
[26809] Fix | Delete
size: 12,
[26810] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Visitors cannot add new comments or replies.')
[26811] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[26812] Fix | Delete
variant: "muted",
[26813] Fix | Delete
size: 12,
[26814] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Existing comments remain visible.')
[26815] Fix | Delete
})]
[26816] Fix | Delete
}),
[26817] Fix | Delete
value: ''
[26818] Fix | Delete
}];
[26819] Fix | Delete
function SiteDiscussion() {
[26820] Fix | Delete
const {
[26821] Fix | Delete
editEntityRecord
[26822] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
[26823] Fix | Delete
const {
[26824] Fix | Delete
allowCommentsOnNewPosts,
[26825] Fix | Delete
isTemplate,
[26826] Fix | Delete
postSlug
[26827] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[26828] Fix | Delete
const {
[26829] Fix | Delete
getEditedPostAttribute,
[26830] Fix | Delete
getCurrentPostType
[26831] Fix | Delete
} = select(store_store);
[26832] Fix | Delete
const {
[26833] Fix | Delete
getEditedEntityRecord
[26834] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[26835] Fix | Delete
const siteSettings = getEditedEntityRecord('root', 'site');
[26836] Fix | Delete
return {
[26837] Fix | Delete
isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
[26838] Fix | Delete
postSlug: getEditedPostAttribute('slug'),
[26839] Fix | Delete
allowCommentsOnNewPosts: siteSettings?.default_comment_status || ''
[26840] Fix | Delete
};
[26841] Fix | Delete
}, []);
[26842] Fix | Delete
// Use internal state instead of a ref to make sure that the component
[26843] Fix | Delete
// re-renders when the popover's anchor updates.
[26844] Fix | Delete
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
[26845] Fix | Delete
// Memoize popoverProps to avoid returning a new object every time.
[26846] Fix | Delete
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[26847] Fix | Delete
// Anchor the popover to the middle of the entire row so that it doesn't
[26848] Fix | Delete
// move around when the label changes.
[26849] Fix | Delete
anchor: popoverAnchor,
[26850] Fix | Delete
placement: 'left-start',
[26851] Fix | Delete
offset: 36,
[26852] Fix | Delete
shift: true
[26853] Fix | Delete
}), [popoverAnchor]);
[26854] Fix | Delete
if (!isTemplate || !['home', 'index'].includes(postSlug)) {
[26855] Fix | Delete
return null;
[26856] Fix | Delete
}
[26857] Fix | Delete
const setAllowCommentsOnNewPosts = newValue => {
[26858] Fix | Delete
editEntityRecord('root', 'site', undefined, {
[26859] Fix | Delete
default_comment_status: newValue ? 'open' : null
[26860] Fix | Delete
});
[26861] Fix | Delete
};
[26862] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
[26863] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
[26864] Fix | Delete
ref: setPopoverAnchor,
[26865] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
[26866] Fix | Delete
popoverProps: popoverProps,
[26867] Fix | Delete
contentClassName: "editor-site-discussion-dropdown__content",
[26868] Fix | Delete
focusOnMount: true,
[26869] Fix | Delete
renderToggle: ({
[26870] Fix | Delete
isOpen,
[26871] Fix | Delete
onToggle
[26872] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[26873] Fix | Delete
size: "compact",
[26874] Fix | Delete
variant: "tertiary",
[26875] Fix | Delete
"aria-expanded": isOpen,
[26876] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Change discussion settings'),
[26877] Fix | Delete
onClick: onToggle,
[26878] Fix | Delete
children: allowCommentsOnNewPosts ? (0,external_wp_i18n_namespaceObject.__)('Comments open') : (0,external_wp_i18n_namespaceObject.__)('Comments closed')
[26879] Fix | Delete
}),
[26880] Fix | Delete
renderContent: ({
[26881] Fix | Delete
onClose
[26882] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[26883] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
[26884] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
[26885] Fix | Delete
onClose: onClose
[26886] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
[26887] Fix | Delete
spacing: 3,
[26888] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[26889] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Changes will apply to new posts only. Individual posts may override these settings.')
[26890] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
[26891] Fix | Delete
className: "editor-site-discussion__options",
[26892] Fix | Delete
hideLabelFromVision: true,
[26893] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Comment status'),
[26894] Fix | Delete
options: site_discussion_COMMENT_OPTIONS,
[26895] Fix | Delete
onChange: setAllowCommentsOnNewPosts,
[26896] Fix | Delete
selected: allowCommentsOnNewPosts
[26897] Fix | Delete
})]
[26898] Fix | Delete
})]
[26899] Fix | Delete
})
[26900] Fix | Delete
})
[26901] Fix | Delete
});
[26902] Fix | Delete
}
[26903] Fix | Delete
[26904] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/template-areas/index.js
[26905] Fix | Delete
/**
[26906] Fix | Delete
* WordPress dependencies
[26907] Fix | Delete
*/
[26908] Fix | Delete
[26909] Fix | Delete
[26910] Fix | Delete
[26911] Fix | Delete
[26912] Fix | Delete
[26913] Fix | Delete
/**
[26914] Fix | Delete
* Internal dependencies
[26915] Fix | Delete
*/
[26916] Fix | Delete
[26917] Fix | Delete
[26918] Fix | Delete
[26919] Fix | Delete
[26920] Fix | Delete
[26921] Fix | Delete
function TemplateAreaItem({
[26922] Fix | Delete
area,
[26923] Fix | Delete
clientId
[26924] Fix | Delete
}) {
[26925] Fix | Delete
const {
[26926] Fix | Delete
selectBlock,
[26927] Fix | Delete
toggleBlockHighlight
[26928] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
[26929] Fix | Delete
const templatePartArea = (0,external_wp_data_namespaceObject.useSelect)(select => {
[26930] Fix | Delete
const defaultAreas = select(store_store).__experimentalGetDefaultTemplatePartAreas();
[26931] Fix | Delete
return defaultAreas.find(defaultArea => defaultArea.area === area);
[26932] Fix | Delete
}, [area]);
[26933] Fix | Delete
const highlightBlock = () => toggleBlockHighlight(clientId, true);
[26934] Fix | Delete
const cancelHighlightBlock = () => toggleBlockHighlight(clientId, false);
[26935] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[26936] Fix | Delete
className: "editor-template-areas__item",
[26937] Fix | Delete
icon: templatePartArea?.icon,
[26938] Fix | Delete
onMouseOver: highlightBlock,
[26939] Fix | Delete
onMouseLeave: cancelHighlightBlock,
[26940] Fix | Delete
onFocus: highlightBlock,
[26941] Fix | Delete
onBlur: cancelHighlightBlock,
[26942] Fix | Delete
onClick: () => {
[26943] Fix | Delete
selectBlock(clientId);
[26944] Fix | Delete
},
[26945] Fix | Delete
children: templatePartArea?.label
[26946] Fix | Delete
});
[26947] Fix | Delete
}
[26948] Fix | Delete
function TemplateAreas() {
[26949] Fix | Delete
const {
[26950] Fix | Delete
isTemplate,
[26951] Fix | Delete
templateParts
[26952] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[26953] Fix | Delete
const _isTemplate = select(store_store).getCurrentPostType() === TEMPLATE_POST_TYPE;
[26954] Fix | Delete
return {
[26955] Fix | Delete
isTemplate: _isTemplate,
[26956] Fix | Delete
templateParts: _isTemplate && unlock(select(store_store)).getCurrentTemplateTemplateParts()
[26957] Fix | Delete
};
[26958] Fix | Delete
}, []);
[26959] Fix | Delete
if (!isTemplate || !templateParts.length) {
[26960] Fix | Delete
return null;
[26961] Fix | Delete
}
[26962] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("section", {
[26963] Fix | Delete
className: "editor-template-areas",
[26964] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
[26965] Fix | Delete
level: 3,
[26966] Fix | Delete
className: "editor-template-areas__title",
[26967] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Areas')
[26968] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
[26969] Fix | Delete
className: "editor-template-areas__list",
[26970] Fix | Delete
children: templateParts.map(({
[26971] Fix | Delete
templatePart,
[26972] Fix | Delete
block
[26973] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
[26974] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TemplateAreaItem, {
[26975] Fix | Delete
area: templatePart.area,
[26976] Fix | Delete
clientId: block.clientId
[26977] Fix | Delete
})
[26978] Fix | Delete
}, block.clientId))
[26979] Fix | Delete
})]
[26980] Fix | Delete
});
[26981] Fix | Delete
}
[26982] Fix | Delete
[26983] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/sidebar/post-summary.js
[26984] Fix | Delete
/**
[26985] Fix | Delete
* WordPress dependencies
[26986] Fix | Delete
*/
[26987] Fix | Delete
[26988] Fix | Delete
[26989] Fix | Delete
[26990] Fix | Delete
/**
[26991] Fix | Delete
* Internal dependencies
[26992] Fix | Delete
*/
[26993] Fix | Delete
[26994] Fix | Delete
[26995] Fix | Delete
[26996] Fix | Delete
[26997] Fix | Delete
[26998] Fix | Delete
[26999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function