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
})]
[12000] Fix | Delete
})
[12001] Fix | Delete
})
[12002] Fix | Delete
})
[12003] Fix | Delete
});
[12004] Fix | Delete
}
[12005] Fix | Delete
/* harmony default export */ const panel = (panel_PostAuthor);
[12006] Fix | Delete
[12007] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-comments/index.js
[12008] Fix | Delete
/**
[12009] Fix | Delete
* WordPress dependencies
[12010] Fix | Delete
*/
[12011] Fix | Delete
[12012] Fix | Delete
[12013] Fix | Delete
[12014] Fix | Delete
[12015] Fix | Delete
/**
[12016] Fix | Delete
* Internal dependencies
[12017] Fix | Delete
*/
[12018] Fix | Delete
[12019] Fix | Delete
[12020] Fix | Delete
[12021] Fix | Delete
[12022] Fix | Delete
const COMMENT_OPTIONS = [{
[12023] Fix | Delete
label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[12024] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('Open'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[12025] Fix | Delete
variant: "muted",
[12026] Fix | Delete
size: 12,
[12027] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Visitors can add new comments and replies.')
[12028] Fix | Delete
})]
[12029] Fix | Delete
}),
[12030] Fix | Delete
value: 'open'
[12031] Fix | Delete
}, {
[12032] Fix | Delete
label: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[12033] Fix | Delete
children: [(0,external_wp_i18n_namespaceObject.__)('Closed'), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[12034] Fix | Delete
variant: "muted",
[12035] Fix | Delete
size: 12,
[12036] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Visitors cannot add new comments or replies.')
[12037] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[12038] Fix | Delete
variant: "muted",
[12039] Fix | Delete
size: 12,
[12040] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Existing comments remain visible.')
[12041] Fix | Delete
})]
[12042] Fix | Delete
}),
[12043] Fix | Delete
value: 'closed'
[12044] Fix | Delete
}];
[12045] Fix | Delete
function PostComments() {
[12046] Fix | Delete
const commentStatus = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12047] Fix | Delete
var _select$getEditedPost;
[12048] Fix | Delete
return (_select$getEditedPost = select(store_store).getEditedPostAttribute('comment_status')) !== null && _select$getEditedPost !== void 0 ? _select$getEditedPost : 'open';
[12049] Fix | Delete
}, []);
[12050] Fix | Delete
const {
[12051] Fix | Delete
editPost
[12052] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[12053] Fix | Delete
const handleStatus = newCommentStatus => editPost({
[12054] Fix | Delete
comment_status: newCommentStatus
[12055] Fix | Delete
});
[12056] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("form", {
[12057] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
[12058] Fix | Delete
spacing: 4,
[12059] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.RadioControl, {
[12060] Fix | Delete
className: "editor-change-status__options",
[12061] Fix | Delete
hideLabelFromVision: true,
[12062] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Comment status'),
[12063] Fix | Delete
options: COMMENT_OPTIONS,
[12064] Fix | Delete
onChange: handleStatus,
[12065] Fix | Delete
selected: commentStatus
[12066] Fix | Delete
})
[12067] Fix | Delete
})
[12068] Fix | Delete
});
[12069] Fix | Delete
}
[12070] Fix | Delete
[12071] Fix | Delete
/**
[12072] Fix | Delete
* A form for managing comment status.
[12073] Fix | Delete
*
[12074] Fix | Delete
* @return {JSX.Element} The rendered PostComments component.
[12075] Fix | Delete
*/
[12076] Fix | Delete
/* harmony default export */ const post_comments = (PostComments);
[12077] Fix | Delete
[12078] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-pingbacks/index.js
[12079] Fix | Delete
/**
[12080] Fix | Delete
* WordPress dependencies
[12081] Fix | Delete
*/
[12082] Fix | Delete
[12083] Fix | Delete
[12084] Fix | Delete
[12085] Fix | Delete
[12086] Fix | Delete
/**
[12087] Fix | Delete
* Internal dependencies
[12088] Fix | Delete
*/
[12089] Fix | Delete
[12090] Fix | Delete
[12091] Fix | Delete
function PostPingbacks() {
[12092] Fix | Delete
const pingStatus = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12093] Fix | Delete
var _select$getEditedPost;
[12094] Fix | Delete
return (_select$getEditedPost = select(store_store).getEditedPostAttribute('ping_status')) !== null && _select$getEditedPost !== void 0 ? _select$getEditedPost : 'open';
[12095] Fix | Delete
}, []);
[12096] Fix | Delete
const {
[12097] Fix | Delete
editPost
[12098] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[12099] Fix | Delete
const onTogglePingback = () => editPost({
[12100] Fix | Delete
ping_status: pingStatus === 'open' ? 'closed' : 'open'
[12101] Fix | Delete
});
[12102] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
[12103] Fix | Delete
__nextHasNoMarginBottom: true,
[12104] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Enable pingbacks & trackbacks'),
[12105] Fix | Delete
checked: pingStatus === 'open',
[12106] Fix | Delete
onChange: onTogglePingback,
[12107] Fix | Delete
help: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
[12108] Fix | Delete
href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/trackbacks-and-pingbacks/'),
[12109] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Learn more about pingbacks & trackbacks')
[12110] Fix | Delete
})
[12111] Fix | Delete
});
[12112] Fix | Delete
}
[12113] Fix | Delete
[12114] Fix | Delete
/**
[12115] Fix | Delete
* Renders a control for enabling or disabling pingbacks and trackbacks
[12116] Fix | Delete
* in a WordPress post.
[12117] Fix | Delete
*
[12118] Fix | Delete
* @module PostPingbacks
[12119] Fix | Delete
*/
[12120] Fix | Delete
/* harmony default export */ const post_pingbacks = (PostPingbacks);
[12121] Fix | Delete
[12122] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-discussion/panel.js
[12123] Fix | Delete
/**
[12124] Fix | Delete
* WordPress dependencies
[12125] Fix | Delete
*/
[12126] Fix | Delete
[12127] Fix | Delete
[12128] Fix | Delete
[12129] Fix | Delete
[12130] Fix | Delete
[12131] Fix | Delete
[12132] Fix | Delete
[12133] Fix | Delete
/**
[12134] Fix | Delete
* Internal dependencies
[12135] Fix | Delete
*/
[12136] Fix | Delete
[12137] Fix | Delete
[12138] Fix | Delete
[12139] Fix | Delete
[12140] Fix | Delete
[12141] Fix | Delete
[12142] Fix | Delete
[12143] Fix | Delete
const panel_PANEL_NAME = 'discussion-panel';
[12144] Fix | Delete
function ModalContents({
[12145] Fix | Delete
onClose
[12146] Fix | Delete
}) {
[12147] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[12148] Fix | Delete
className: "editor-post-discussion",
[12149] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalInspectorPopoverHeader, {
[12150] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
[12151] Fix | Delete
onClose: onClose
[12152] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
[12153] Fix | Delete
spacing: 4,
[12154] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
[12155] Fix | Delete
supportKeys: "comments",
[12156] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_comments, {})
[12157] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
[12158] Fix | Delete
supportKeys: "trackbacks",
[12159] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_pingbacks, {})
[12160] Fix | Delete
})]
[12161] Fix | Delete
})]
[12162] Fix | Delete
});
[12163] Fix | Delete
}
[12164] Fix | Delete
function PostDiscussionToggle({
[12165] Fix | Delete
isOpen,
[12166] Fix | Delete
onClick
[12167] Fix | Delete
}) {
[12168] Fix | Delete
const {
[12169] Fix | Delete
commentStatus,
[12170] Fix | Delete
pingStatus,
[12171] Fix | Delete
commentsSupported,
[12172] Fix | Delete
trackbacksSupported
[12173] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12174] Fix | Delete
var _getEditedPostAttribu, _getEditedPostAttribu2;
[12175] Fix | Delete
const {
[12176] Fix | Delete
getEditedPostAttribute
[12177] Fix | Delete
} = select(store_store);
[12178] Fix | Delete
const {
[12179] Fix | Delete
getPostType
[12180] Fix | Delete
} = select(external_wp_coreData_namespaceObject.store);
[12181] Fix | Delete
const postType = getPostType(getEditedPostAttribute('type'));
[12182] Fix | Delete
return {
[12183] Fix | Delete
commentStatus: (_getEditedPostAttribu = getEditedPostAttribute('comment_status')) !== null && _getEditedPostAttribu !== void 0 ? _getEditedPostAttribu : 'open',
[12184] Fix | Delete
pingStatus: (_getEditedPostAttribu2 = getEditedPostAttribute('ping_status')) !== null && _getEditedPostAttribu2 !== void 0 ? _getEditedPostAttribu2 : 'open',
[12185] Fix | Delete
commentsSupported: !!postType.supports.comments,
[12186] Fix | Delete
trackbacksSupported: !!postType.supports.trackbacks
[12187] Fix | Delete
};
[12188] Fix | Delete
}, []);
[12189] Fix | Delete
let label;
[12190] Fix | Delete
if (commentStatus === 'open') {
[12191] Fix | Delete
if (pingStatus === 'open') {
[12192] Fix | Delete
label = (0,external_wp_i18n_namespaceObject.__)('Open');
[12193] Fix | Delete
} else {
[12194] Fix | Delete
label = trackbacksSupported ? (0,external_wp_i18n_namespaceObject.__)('Comments only') : (0,external_wp_i18n_namespaceObject.__)('Open');
[12195] Fix | Delete
}
[12196] Fix | Delete
} else if (pingStatus === 'open') {
[12197] Fix | Delete
label = commentsSupported ? (0,external_wp_i18n_namespaceObject.__)('Pings only') : (0,external_wp_i18n_namespaceObject.__)('Pings enabled');
[12198] Fix | Delete
} else {
[12199] Fix | Delete
label = (0,external_wp_i18n_namespaceObject.__)('Closed');
[12200] Fix | Delete
}
[12201] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[12202] Fix | Delete
size: "compact",
[12203] Fix | Delete
className: "editor-post-discussion__panel-toggle",
[12204] Fix | Delete
variant: "tertiary",
[12205] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Change discussion options'),
[12206] Fix | Delete
"aria-expanded": isOpen,
[12207] Fix | Delete
onClick: onClick,
[12208] Fix | Delete
children: label
[12209] Fix | Delete
});
[12210] Fix | Delete
}
[12211] Fix | Delete
[12212] Fix | Delete
/**
[12213] Fix | Delete
* This component allows to update comment and pingback
[12214] Fix | Delete
* settings for the current post. Internally there are
[12215] Fix | Delete
* checks whether the current post has support for the
[12216] Fix | Delete
* above and if the `discussion-panel` panel is enabled.
[12217] Fix | Delete
*
[12218] Fix | Delete
* @return {JSX.Element|null} The rendered PostDiscussionPanel component.
[12219] Fix | Delete
*/
[12220] Fix | Delete
function PostDiscussionPanel() {
[12221] Fix | Delete
const {
[12222] Fix | Delete
isEnabled
[12223] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12224] Fix | Delete
const {
[12225] Fix | Delete
isEditorPanelEnabled
[12226] Fix | Delete
} = select(store_store);
[12227] Fix | Delete
return {
[12228] Fix | Delete
isEnabled: isEditorPanelEnabled(panel_PANEL_NAME)
[12229] Fix | Delete
};
[12230] Fix | Delete
}, []);
[12231] Fix | Delete
[12232] Fix | Delete
// Use internal state instead of a ref to make sure that the component
[12233] Fix | Delete
// re-renders when the popover's anchor updates.
[12234] Fix | Delete
const [popoverAnchor, setPopoverAnchor] = (0,external_wp_element_namespaceObject.useState)(null);
[12235] Fix | Delete
// Memoize popoverProps to avoid returning a new object every time.
[12236] Fix | Delete
const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[12237] Fix | Delete
// Anchor the popover to the middle of the entire row so that it doesn't
[12238] Fix | Delete
// move around when the label changes.
[12239] Fix | Delete
anchor: popoverAnchor,
[12240] Fix | Delete
placement: 'left-start',
[12241] Fix | Delete
offset: 36,
[12242] Fix | Delete
shift: true
[12243] Fix | Delete
}), [popoverAnchor]);
[12244] Fix | Delete
if (!isEnabled) {
[12245] Fix | Delete
return null;
[12246] Fix | Delete
}
[12247] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
[12248] Fix | Delete
supportKeys: ['comments', 'trackbacks'],
[12249] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_panel_row, {
[12250] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Discussion'),
[12251] Fix | Delete
ref: setPopoverAnchor,
[12252] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
[12253] Fix | Delete
popoverProps: popoverProps,
[12254] Fix | Delete
className: "editor-post-discussion__panel-dropdown",
[12255] Fix | Delete
contentClassName: "editor-post-discussion__panel-dialog",
[12256] Fix | Delete
focusOnMount: true,
[12257] Fix | Delete
renderToggle: ({
[12258] Fix | Delete
isOpen,
[12259] Fix | Delete
onToggle
[12260] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostDiscussionToggle, {
[12261] Fix | Delete
isOpen: isOpen,
[12262] Fix | Delete
onClick: onToggle
[12263] Fix | Delete
}),
[12264] Fix | Delete
renderContent: ({
[12265] Fix | Delete
onClose
[12266] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalContents, {
[12267] Fix | Delete
onClose: onClose
[12268] Fix | Delete
})
[12269] Fix | Delete
})
[12270] Fix | Delete
})
[12271] Fix | Delete
});
[12272] Fix | Delete
}
[12273] Fix | Delete
[12274] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/index.js
[12275] Fix | Delete
/**
[12276] Fix | Delete
* WordPress dependencies
[12277] Fix | Delete
*/
[12278] Fix | Delete
[12279] Fix | Delete
[12280] Fix | Delete
[12281] Fix | Delete
[12282] Fix | Delete
[12283] Fix | Delete
[12284] Fix | Delete
/**
[12285] Fix | Delete
* Internal dependencies
[12286] Fix | Delete
*/
[12287] Fix | Delete
[12288] Fix | Delete
[12289] Fix | Delete
/**
[12290] Fix | Delete
* Renders an editable textarea for the post excerpt.
[12291] Fix | Delete
* Templates, template parts and patterns use the `excerpt` field as a description semantically.
[12292] Fix | Delete
* Additionally templates and template parts override the `excerpt` field as `description` in
[12293] Fix | Delete
* REST API. So this component handles proper labeling and updating the edited entity.
[12294] Fix | Delete
*
[12295] Fix | Delete
* @param {Object} props - Component props.
[12296] Fix | Delete
* @param {boolean} [props.hideLabelFromVision=false] - Whether to visually hide the textarea's label.
[12297] Fix | Delete
* @param {boolean} [props.updateOnBlur=false] - Whether to update the post on change or use local state and update on blur.
[12298] Fix | Delete
*/
[12299] Fix | Delete
[12300] Fix | Delete
function PostExcerpt({
[12301] Fix | Delete
hideLabelFromVision = false,
[12302] Fix | Delete
updateOnBlur = false
[12303] Fix | Delete
}) {
[12304] Fix | Delete
const {
[12305] Fix | Delete
excerpt,
[12306] Fix | Delete
shouldUseDescriptionLabel,
[12307] Fix | Delete
usedAttribute
[12308] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12309] Fix | Delete
const {
[12310] Fix | Delete
getCurrentPostType,
[12311] Fix | Delete
getEditedPostAttribute
[12312] Fix | Delete
} = select(store_store);
[12313] Fix | Delete
const postType = getCurrentPostType();
[12314] Fix | Delete
// This special case is unfortunate, but the REST API of wp_template and wp_template_part
[12315] Fix | Delete
// support the excerpt field throught the "description" field rather than "excerpt".
[12316] Fix | Delete
const _usedAttribute = ['wp_template', 'wp_template_part'].includes(postType) ? 'description' : 'excerpt';
[12317] Fix | Delete
return {
[12318] Fix | Delete
excerpt: getEditedPostAttribute(_usedAttribute),
[12319] Fix | Delete
// There are special cases where we want to label the excerpt as a description.
[12320] Fix | Delete
shouldUseDescriptionLabel: ['wp_template', 'wp_template_part', 'wp_block'].includes(postType),
[12321] Fix | Delete
usedAttribute: _usedAttribute
[12322] Fix | Delete
};
[12323] Fix | Delete
}, []);
[12324] Fix | Delete
const {
[12325] Fix | Delete
editPost
[12326] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[12327] Fix | Delete
const [localExcerpt, setLocalExcerpt] = (0,external_wp_element_namespaceObject.useState)((0,external_wp_htmlEntities_namespaceObject.decodeEntities)(excerpt));
[12328] Fix | Delete
const updatePost = value => {
[12329] Fix | Delete
editPost({
[12330] Fix | Delete
[usedAttribute]: value
[12331] Fix | Delete
});
[12332] Fix | Delete
};
[12333] Fix | Delete
const label = shouldUseDescriptionLabel ? (0,external_wp_i18n_namespaceObject.__)('Write a description (optional)') : (0,external_wp_i18n_namespaceObject.__)('Write an excerpt (optional)');
[12334] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[12335] Fix | Delete
className: "editor-post-excerpt",
[12336] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.TextareaControl, {
[12337] Fix | Delete
__nextHasNoMarginBottom: true,
[12338] Fix | Delete
label: label,
[12339] Fix | Delete
hideLabelFromVision: hideLabelFromVision,
[12340] Fix | Delete
className: "editor-post-excerpt__textarea",
[12341] Fix | Delete
onChange: updateOnBlur ? setLocalExcerpt : updatePost,
[12342] Fix | Delete
onBlur: updateOnBlur ? () => updatePost(localExcerpt) : undefined,
[12343] Fix | Delete
value: updateOnBlur ? localExcerpt : excerpt,
[12344] Fix | Delete
help: !shouldUseDescriptionLabel ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ExternalLink, {
[12345] Fix | Delete
href: (0,external_wp_i18n_namespaceObject.__)('https://wordpress.org/documentation/article/page-post-settings-sidebar/#excerpt'),
[12346] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Learn more about manual excerpts')
[12347] Fix | Delete
}) : (0,external_wp_i18n_namespaceObject.__)('Write a description')
[12348] Fix | Delete
})
[12349] Fix | Delete
});
[12350] Fix | Delete
}
[12351] Fix | Delete
[12352] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/check.js
[12353] Fix | Delete
/**
[12354] Fix | Delete
* Internal dependencies
[12355] Fix | Delete
*/
[12356] Fix | Delete
[12357] Fix | Delete
[12358] Fix | Delete
/**
[12359] Fix | Delete
* Component for checking if the post type supports the excerpt field.
[12360] Fix | Delete
*
[12361] Fix | Delete
* @param {Object} props Props.
[12362] Fix | Delete
* @param {Element} props.children Children to be rendered.
[12363] Fix | Delete
*
[12364] Fix | Delete
* @return {Component} The component to be rendered.
[12365] Fix | Delete
*/
[12366] Fix | Delete
[12367] Fix | Delete
function PostExcerptCheck({
[12368] Fix | Delete
children
[12369] Fix | Delete
}) {
[12370] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(post_type_support_check, {
[12371] Fix | Delete
supportKeys: "excerpt",
[12372] Fix | Delete
children: children
[12373] Fix | Delete
});
[12374] Fix | Delete
}
[12375] Fix | Delete
/* harmony default export */ const post_excerpt_check = (PostExcerptCheck);
[12376] Fix | Delete
[12377] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/plugin.js
[12378] Fix | Delete
/**
[12379] Fix | Delete
* Defines as extensibility slot for the Excerpt panel.
[12380] Fix | Delete
*/
[12381] Fix | Delete
[12382] Fix | Delete
/**
[12383] Fix | Delete
* WordPress dependencies
[12384] Fix | Delete
*/
[12385] Fix | Delete
[12386] Fix | Delete
[12387] Fix | Delete
const {
[12388] Fix | Delete
Fill: plugin_Fill,
[12389] Fix | Delete
Slot: plugin_Slot
[12390] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostExcerpt');
[12391] Fix | Delete
[12392] Fix | Delete
/**
[12393] Fix | Delete
* Renders a post excerpt panel in the post sidebar.
[12394] Fix | Delete
*
[12395] Fix | Delete
* @param {Object} props Component properties.
[12396] Fix | Delete
* @param {string} [props.className] An optional class name added to the row.
[12397] Fix | Delete
* @param {Element} props.children Children to be rendered.
[12398] Fix | Delete
*
[12399] Fix | Delete
* @example
[12400] Fix | Delete
* ```js
[12401] Fix | Delete
* // Using ES5 syntax
[12402] Fix | Delete
* var __ = wp.i18n.__;
[12403] Fix | Delete
* var PluginPostExcerpt = wp.editPost.__experimentalPluginPostExcerpt;
[12404] Fix | Delete
*
[12405] Fix | Delete
* function MyPluginPostExcerpt() {
[12406] Fix | Delete
* return React.createElement(
[12407] Fix | Delete
* PluginPostExcerpt,
[12408] Fix | Delete
* {
[12409] Fix | Delete
* className: 'my-plugin-post-excerpt',
[12410] Fix | Delete
* },
[12411] Fix | Delete
* __( 'Post excerpt custom content' )
[12412] Fix | Delete
* )
[12413] Fix | Delete
* }
[12414] Fix | Delete
* ```
[12415] Fix | Delete
*
[12416] Fix | Delete
* @example
[12417] Fix | Delete
* ```jsx
[12418] Fix | Delete
* // Using ESNext syntax
[12419] Fix | Delete
* import { __ } from '@wordpress/i18n';
[12420] Fix | Delete
* import { __experimentalPluginPostExcerpt as PluginPostExcerpt } from '@wordpress/edit-post';
[12421] Fix | Delete
*
[12422] Fix | Delete
* const MyPluginPostExcerpt = () => (
[12423] Fix | Delete
* <PluginPostExcerpt className="my-plugin-post-excerpt">
[12424] Fix | Delete
* { __( 'Post excerpt custom content' ) }
[12425] Fix | Delete
* </PluginPostExcerpt>
[12426] Fix | Delete
* );
[12427] Fix | Delete
* ```
[12428] Fix | Delete
*
[12429] Fix | Delete
* @return {Component} The component to be rendered.
[12430] Fix | Delete
*/
[12431] Fix | Delete
const PluginPostExcerpt = ({
[12432] Fix | Delete
children,
[12433] Fix | Delete
className
[12434] Fix | Delete
}) => {
[12435] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_Fill, {
[12436] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelRow, {
[12437] Fix | Delete
className: className,
[12438] Fix | Delete
children: children
[12439] Fix | Delete
})
[12440] Fix | Delete
});
[12441] Fix | Delete
};
[12442] Fix | Delete
PluginPostExcerpt.Slot = plugin_Slot;
[12443] Fix | Delete
/* harmony default export */ const post_excerpt_plugin = (PluginPostExcerpt);
[12444] Fix | Delete
[12445] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-excerpt/panel.js
[12446] Fix | Delete
/**
[12447] Fix | Delete
* WordPress dependencies
[12448] Fix | Delete
*/
[12449] Fix | Delete
[12450] Fix | Delete
[12451] Fix | Delete
[12452] Fix | Delete
[12453] Fix | Delete
[12454] Fix | Delete
[12455] Fix | Delete
[12456] Fix | Delete
[12457] Fix | Delete
/**
[12458] Fix | Delete
* Internal dependencies
[12459] Fix | Delete
*/
[12460] Fix | Delete
[12461] Fix | Delete
[12462] Fix | Delete
[12463] Fix | Delete
[12464] Fix | Delete
[12465] Fix | Delete
[12466] Fix | Delete
/**
[12467] Fix | Delete
* Module Constants
[12468] Fix | Delete
*/
[12469] Fix | Delete
[12470] Fix | Delete
[12471] Fix | Delete
[12472] Fix | Delete
const post_excerpt_panel_PANEL_NAME = 'post-excerpt';
[12473] Fix | Delete
function ExcerptPanel() {
[12474] Fix | Delete
const {
[12475] Fix | Delete
isOpened,
[12476] Fix | Delete
isEnabled,
[12477] Fix | Delete
postType
[12478] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[12479] Fix | Delete
const {
[12480] Fix | Delete
isEditorPanelOpened,
[12481] Fix | Delete
isEditorPanelEnabled,
[12482] Fix | Delete
getCurrentPostType
[12483] Fix | Delete
} = select(store_store);
[12484] Fix | Delete
return {
[12485] Fix | Delete
isOpened: isEditorPanelOpened(post_excerpt_panel_PANEL_NAME),
[12486] Fix | Delete
isEnabled: isEditorPanelEnabled(post_excerpt_panel_PANEL_NAME),
[12487] Fix | Delete
postType: getCurrentPostType()
[12488] Fix | Delete
};
[12489] Fix | Delete
}, []);
[12490] Fix | Delete
const {
[12491] Fix | Delete
toggleEditorPanelOpened
[12492] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[12493] Fix | Delete
const toggleExcerptPanel = () => toggleEditorPanelOpened(post_excerpt_panel_PANEL_NAME);
[12494] Fix | Delete
if (!isEnabled) {
[12495] Fix | Delete
return null;
[12496] Fix | Delete
}
[12497] Fix | Delete
[12498] Fix | Delete
// There are special cases where we want to label the excerpt as a description.
[12499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function