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
});
[10500] Fix | Delete
onClose();
[10501] Fix | Delete
createSuccessNotice((0,external_wp_i18n_namespaceObject.__)('Editing template. Changes made here affect all posts and pages that use the template.'), {
[10502] Fix | Delete
type: 'snackbar',
[10503] Fix | Delete
actions: [{
[10504] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Go back'),
[10505] Fix | Delete
onClick: () => getEditorSettings().onNavigateToPreviousEntityRecord()
[10506] Fix | Delete
}]
[10507] Fix | Delete
});
[10508] Fix | Delete
},
[10509] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Edit template')
[10510] Fix | Delete
})
[10511] Fix | Delete
}), isCreateModalOpen && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CreateNewTemplateModal, {
[10512] Fix | Delete
onClose: () => setIsCreateModalOpen(false)
[10513] Fix | Delete
})]
[10514] Fix | Delete
});
[10515] Fix | Delete
}
[10516] Fix | Delete
function ClassicThemeControl() {
[10517] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Dropdown, {
[10518] Fix | Delete
popoverProps: POPOVER_PROPS,
[10519] Fix | Delete
focusOnMount: true,
[10520] Fix | Delete
renderToggle: ({
[10521] Fix | Delete
isOpen,
[10522] Fix | Delete
onToggle
[10523] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplateToggle, {
[10524] Fix | Delete
isOpen: isOpen,
[10525] Fix | Delete
onClick: onToggle
[10526] Fix | Delete
}),
[10527] Fix | Delete
renderContent: ({
[10528] Fix | Delete
onClose
[10529] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PostTemplateDropdownContent, {
[10530] Fix | Delete
onClose: onClose
[10531] Fix | Delete
})
[10532] Fix | Delete
});
[10533] Fix | Delete
}
[10534] Fix | Delete
[10535] Fix | Delete
/**
[10536] Fix | Delete
* Provides a dropdown menu for selecting and managing post templates.
[10537] Fix | Delete
*
[10538] Fix | Delete
* The dropdown menu includes a button for toggling the menu, a list of available templates, and options for creating and editing templates.
[10539] Fix | Delete
*
[10540] Fix | Delete
* @return {JSX.Element} The rendered ClassicThemeControl component.
[10541] Fix | Delete
*/
[10542] Fix | Delete
/* harmony default export */ const classic_theme = (ClassicThemeControl);
[10543] Fix | Delete
[10544] Fix | Delete
;// CONCATENATED MODULE: external ["wp","warning"]
[10545] Fix | Delete
const external_wp_warning_namespaceObject = window["wp"]["warning"];
[10546] Fix | Delete
var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
[10547] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-panel.js
[10548] Fix | Delete
/**
[10549] Fix | Delete
* WordPress dependencies
[10550] Fix | Delete
*/
[10551] Fix | Delete
[10552] Fix | Delete
[10553] Fix | Delete
[10554] Fix | Delete
[10555] Fix | Delete
/**
[10556] Fix | Delete
* Internal dependencies
[10557] Fix | Delete
*/
[10558] Fix | Delete
[10559] Fix | Delete
[10560] Fix | Delete
const {
[10561] Fix | Delete
PreferenceBaseOption
[10562] Fix | Delete
} = unlock(external_wp_preferences_namespaceObject.privateApis);
[10563] Fix | Delete
/* harmony default export */ const enable_panel = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_data_namespaceObject.withSelect)((select, {
[10564] Fix | Delete
panelName
[10565] Fix | Delete
}) => {
[10566] Fix | Delete
const {
[10567] Fix | Delete
isEditorPanelEnabled,
[10568] Fix | Delete
isEditorPanelRemoved
[10569] Fix | Delete
} = select(store_store);
[10570] Fix | Delete
return {
[10571] Fix | Delete
isRemoved: isEditorPanelRemoved(panelName),
[10572] Fix | Delete
isChecked: isEditorPanelEnabled(panelName)
[10573] Fix | Delete
};
[10574] Fix | Delete
}), (0,external_wp_compose_namespaceObject.ifCondition)(({
[10575] Fix | Delete
isRemoved
[10576] Fix | Delete
}) => !isRemoved), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, {
[10577] Fix | Delete
panelName
[10578] Fix | Delete
}) => ({
[10579] Fix | Delete
onChange: () => dispatch(store_store).toggleEditorPanelEnabled(panelName)
[10580] Fix | Delete
})))(PreferenceBaseOption));
[10581] Fix | Delete
[10582] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js
[10583] Fix | Delete
/**
[10584] Fix | Delete
* WordPress dependencies
[10585] Fix | Delete
*/
[10586] Fix | Delete
[10587] Fix | Delete
[10588] Fix | Delete
/**
[10589] Fix | Delete
* Internal dependencies
[10590] Fix | Delete
*/
[10591] Fix | Delete
[10592] Fix | Delete
[10593] Fix | Delete
const {
[10594] Fix | Delete
Fill,
[10595] Fix | Delete
Slot
[10596] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('EnablePluginDocumentSettingPanelOption');
[10597] Fix | Delete
const EnablePluginDocumentSettingPanelOption = ({
[10598] Fix | Delete
label,
[10599] Fix | Delete
panelName
[10600] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Fill, {
[10601] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_panel, {
[10602] Fix | Delete
label: label,
[10603] Fix | Delete
panelName: panelName
[10604] Fix | Delete
})
[10605] Fix | Delete
});
[10606] Fix | Delete
EnablePluginDocumentSettingPanelOption.Slot = Slot;
[10607] Fix | Delete
/* harmony default export */ const enable_plugin_document_setting_panel = (EnablePluginDocumentSettingPanelOption);
[10608] Fix | Delete
[10609] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-document-setting-panel/index.js
[10610] Fix | Delete
/**
[10611] Fix | Delete
* WordPress dependencies
[10612] Fix | Delete
*/
[10613] Fix | Delete
[10614] Fix | Delete
[10615] Fix | Delete
[10616] Fix | Delete
[10617] Fix | Delete
[10618] Fix | Delete
/**
[10619] Fix | Delete
* Internal dependencies
[10620] Fix | Delete
*/
[10621] Fix | Delete
[10622] Fix | Delete
[10623] Fix | Delete
[10624] Fix | Delete
[10625] Fix | Delete
[10626] Fix | Delete
const {
[10627] Fix | Delete
Fill: plugin_document_setting_panel_Fill,
[10628] Fix | Delete
Slot: plugin_document_setting_panel_Slot
[10629] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginDocumentSettingPanel');
[10630] Fix | Delete
[10631] Fix | Delete
/**
[10632] Fix | Delete
* Renders items below the Status & Availability panel in the Document Sidebar.
[10633] Fix | Delete
*
[10634] Fix | Delete
* @param {Object} props Component properties.
[10635] Fix | Delete
* @param {string} props.name Required. A machine-friendly name for the panel.
[10636] Fix | Delete
* @param {string} [props.className] An optional class name added to the row.
[10637] Fix | Delete
* @param {string} [props.title] The title of the panel
[10638] Fix | Delete
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
[10639] Fix | Delete
* @param {Element} props.children Children to be rendered
[10640] Fix | Delete
*
[10641] Fix | Delete
* @example
[10642] Fix | Delete
* ```js
[10643] Fix | Delete
* // Using ES5 syntax
[10644] Fix | Delete
* var el = React.createElement;
[10645] Fix | Delete
* var __ = wp.i18n.__;
[10646] Fix | Delete
* var registerPlugin = wp.plugins.registerPlugin;
[10647] Fix | Delete
* var PluginDocumentSettingPanel = wp.editor.PluginDocumentSettingPanel;
[10648] Fix | Delete
*
[10649] Fix | Delete
* function MyDocumentSettingPlugin() {
[10650] Fix | Delete
* return el(
[10651] Fix | Delete
* PluginDocumentSettingPanel,
[10652] Fix | Delete
* {
[10653] Fix | Delete
* className: 'my-document-setting-plugin',
[10654] Fix | Delete
* title: 'My Panel',
[10655] Fix | Delete
* name: 'my-panel',
[10656] Fix | Delete
* },
[10657] Fix | Delete
* __( 'My Document Setting Panel' )
[10658] Fix | Delete
* );
[10659] Fix | Delete
* }
[10660] Fix | Delete
*
[10661] Fix | Delete
* registerPlugin( 'my-document-setting-plugin', {
[10662] Fix | Delete
* render: MyDocumentSettingPlugin
[10663] Fix | Delete
* } );
[10664] Fix | Delete
* ```
[10665] Fix | Delete
*
[10666] Fix | Delete
* @example
[10667] Fix | Delete
* ```jsx
[10668] Fix | Delete
* // Using ESNext syntax
[10669] Fix | Delete
* import { registerPlugin } from '@wordpress/plugins';
[10670] Fix | Delete
* import { PluginDocumentSettingPanel } from '@wordpress/editor';
[10671] Fix | Delete
*
[10672] Fix | Delete
* const MyDocumentSettingTest = () => (
[10673] Fix | Delete
* <PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel" name="my-panel">
[10674] Fix | Delete
* <p>My Document Setting Panel</p>
[10675] Fix | Delete
* </PluginDocumentSettingPanel>
[10676] Fix | Delete
* );
[10677] Fix | Delete
*
[10678] Fix | Delete
* registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
[10679] Fix | Delete
* ```
[10680] Fix | Delete
*
[10681] Fix | Delete
* @return {Component} The component to be rendered.
[10682] Fix | Delete
*/
[10683] Fix | Delete
const PluginDocumentSettingPanel = ({
[10684] Fix | Delete
name,
[10685] Fix | Delete
className,
[10686] Fix | Delete
title,
[10687] Fix | Delete
icon,
[10688] Fix | Delete
children
[10689] Fix | Delete
}) => {
[10690] Fix | Delete
const {
[10691] Fix | Delete
name: pluginName
[10692] Fix | Delete
} = (0,external_wp_plugins_namespaceObject.usePluginContext)();
[10693] Fix | Delete
const panelName = `${pluginName}/${name}`;
[10694] Fix | Delete
const {
[10695] Fix | Delete
opened,
[10696] Fix | Delete
isEnabled
[10697] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[10698] Fix | Delete
const {
[10699] Fix | Delete
isEditorPanelOpened,
[10700] Fix | Delete
isEditorPanelEnabled
[10701] Fix | Delete
} = select(store_store);
[10702] Fix | Delete
return {
[10703] Fix | Delete
opened: isEditorPanelOpened(panelName),
[10704] Fix | Delete
isEnabled: isEditorPanelEnabled(panelName)
[10705] Fix | Delete
};
[10706] Fix | Delete
}, [panelName]);
[10707] Fix | Delete
const {
[10708] Fix | Delete
toggleEditorPanelOpened
[10709] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
[10710] Fix | Delete
if (undefined === name) {
[10711] Fix | Delete
true ? external_wp_warning_default()('PluginDocumentSettingPanel requires a name property.') : 0;
[10712] Fix | Delete
}
[10713] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[10714] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(enable_plugin_document_setting_panel, {
[10715] Fix | Delete
label: title,
[10716] Fix | Delete
panelName: panelName
[10717] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_document_setting_panel_Fill, {
[10718] Fix | Delete
children: isEnabled && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
[10719] Fix | Delete
className: className,
[10720] Fix | Delete
title: title,
[10721] Fix | Delete
icon: icon,
[10722] Fix | Delete
opened: opened,
[10723] Fix | Delete
onToggle: () => toggleEditorPanelOpened(panelName),
[10724] Fix | Delete
children: children
[10725] Fix | Delete
})
[10726] Fix | Delete
})]
[10727] Fix | Delete
});
[10728] Fix | Delete
};
[10729] Fix | Delete
PluginDocumentSettingPanel.Slot = plugin_document_setting_panel_Slot;
[10730] Fix | Delete
/* harmony default export */ const plugin_document_setting_panel = (PluginDocumentSettingPanel);
[10731] Fix | Delete
[10732] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js
[10733] Fix | Delete
/**
[10734] Fix | Delete
* WordPress dependencies
[10735] Fix | Delete
*/
[10736] Fix | Delete
[10737] Fix | Delete
[10738] Fix | Delete
[10739] Fix | Delete
[10740] Fix | Delete
const isEverySelectedBlockAllowed = (selected, allowed) => selected.filter(id => !allowed.includes(id)).length === 0;
[10741] Fix | Delete
[10742] Fix | Delete
/**
[10743] Fix | Delete
* Plugins may want to add an item to the menu either for every block
[10744] Fix | Delete
* or only for the specific ones provided in the `allowedBlocks` component property.
[10745] Fix | Delete
*
[10746] Fix | Delete
* If there are multiple blocks selected the item will be rendered if every block
[10747] Fix | Delete
* is of one allowed type (not necessarily the same).
[10748] Fix | Delete
*
[10749] Fix | Delete
* @param {string[]} selectedBlocks Array containing the names of the blocks selected
[10750] Fix | Delete
* @param {string[]} allowedBlocks Array containing the names of the blocks allowed
[10751] Fix | Delete
* @return {boolean} Whether the item will be rendered or not.
[10752] Fix | Delete
*/
[10753] Fix | Delete
const shouldRenderItem = (selectedBlocks, allowedBlocks) => !Array.isArray(allowedBlocks) || isEverySelectedBlockAllowed(selectedBlocks, allowedBlocks);
[10754] Fix | Delete
[10755] Fix | Delete
/**
[10756] Fix | Delete
* Renders a new item in the block settings menu.
[10757] Fix | Delete
*
[10758] Fix | Delete
* @param {Object} props Component props.
[10759] Fix | Delete
* @param {Array} [props.allowedBlocks] An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the allowed list.
[10760] Fix | Delete
* @param {WPBlockTypeIconRender} [props.icon] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
[10761] Fix | Delete
* @param {string} props.label The menu item text.
[10762] Fix | Delete
* @param {Function} props.onClick Callback function to be executed when the user click the menu item.
[10763] Fix | Delete
* @param {boolean} [props.small] Whether to render the label or not.
[10764] Fix | Delete
* @param {string} [props.role] The ARIA role for the menu item.
[10765] Fix | Delete
*
[10766] Fix | Delete
* @example
[10767] Fix | Delete
* ```js
[10768] Fix | Delete
* // Using ES5 syntax
[10769] Fix | Delete
* var __ = wp.i18n.__;
[10770] Fix | Delete
* var PluginBlockSettingsMenuItem = wp.editor.PluginBlockSettingsMenuItem;
[10771] Fix | Delete
*
[10772] Fix | Delete
* function doOnClick(){
[10773] Fix | Delete
* // To be called when the user clicks the menu item.
[10774] Fix | Delete
* }
[10775] Fix | Delete
*
[10776] Fix | Delete
* function MyPluginBlockSettingsMenuItem() {
[10777] Fix | Delete
* return React.createElement(
[10778] Fix | Delete
* PluginBlockSettingsMenuItem,
[10779] Fix | Delete
* {
[10780] Fix | Delete
* allowedBlocks: [ 'core/paragraph' ],
[10781] Fix | Delete
* icon: 'dashicon-name',
[10782] Fix | Delete
* label: __( 'Menu item text' ),
[10783] Fix | Delete
* onClick: doOnClick,
[10784] Fix | Delete
* }
[10785] Fix | Delete
* );
[10786] Fix | Delete
* }
[10787] Fix | Delete
* ```
[10788] Fix | Delete
*
[10789] Fix | Delete
* @example
[10790] Fix | Delete
* ```jsx
[10791] Fix | Delete
* // Using ESNext syntax
[10792] Fix | Delete
* import { __ } from '@wordpress/i18n';
[10793] Fix | Delete
* import { PluginBlockSettingsMenuItem } from '@wordpress/editor';
[10794] Fix | Delete
*
[10795] Fix | Delete
* const doOnClick = ( ) => {
[10796] Fix | Delete
* // To be called when the user clicks the menu item.
[10797] Fix | Delete
* };
[10798] Fix | Delete
*
[10799] Fix | Delete
* const MyPluginBlockSettingsMenuItem = () => (
[10800] Fix | Delete
* <PluginBlockSettingsMenuItem
[10801] Fix | Delete
* allowedBlocks={ [ 'core/paragraph' ] }
[10802] Fix | Delete
* icon='dashicon-name'
[10803] Fix | Delete
* label={ __( 'Menu item text' ) }
[10804] Fix | Delete
* onClick={ doOnClick } />
[10805] Fix | Delete
* );
[10806] Fix | Delete
* ```
[10807] Fix | Delete
*
[10808] Fix | Delete
* @return {Component} The component to be rendered.
[10809] Fix | Delete
*/
[10810] Fix | Delete
const PluginBlockSettingsMenuItem = ({
[10811] Fix | Delete
allowedBlocks,
[10812] Fix | Delete
icon,
[10813] Fix | Delete
label,
[10814] Fix | Delete
onClick,
[10815] Fix | Delete
small,
[10816] Fix | Delete
role
[10817] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSettingsMenuControls, {
[10818] Fix | Delete
children: ({
[10819] Fix | Delete
selectedBlocks,
[10820] Fix | Delete
onClose
[10821] Fix | Delete
}) => {
[10822] Fix | Delete
if (!shouldRenderItem(selectedBlocks, allowedBlocks)) {
[10823] Fix | Delete
return null;
[10824] Fix | Delete
}
[10825] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, {
[10826] Fix | Delete
onClick: (0,external_wp_compose_namespaceObject.compose)(onClick, onClose),
[10827] Fix | Delete
icon: icon,
[10828] Fix | Delete
label: small ? label : undefined,
[10829] Fix | Delete
role: role,
[10830] Fix | Delete
children: !small && label
[10831] Fix | Delete
});
[10832] Fix | Delete
}
[10833] Fix | Delete
});
[10834] Fix | Delete
/* harmony default export */ const plugin_block_settings_menu_item = (PluginBlockSettingsMenuItem);
[10835] Fix | Delete
[10836] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-more-menu-item/index.js
[10837] Fix | Delete
/**
[10838] Fix | Delete
* WordPress dependencies
[10839] Fix | Delete
*/
[10840] Fix | Delete
[10841] Fix | Delete
[10842] Fix | Delete
[10843] Fix | Delete
[10844] Fix | Delete
[10845] Fix | Delete
/**
[10846] Fix | Delete
* Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided.
[10847] Fix | Delete
* The text within the component appears as the menu item label.
[10848] Fix | Delete
*
[10849] Fix | Delete
* @param {Object} props Component properties.
[10850] Fix | Delete
* @param {string} [props.href] When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
[10851] Fix | Delete
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
[10852] Fix | Delete
* @param {Function} [props.onClick=noop] The callback function to be executed when the user clicks the menu item.
[10853] Fix | Delete
* @param {...*} [props.other] Any additional props are passed through to the underlying [Button](/packages/components/src/button/README.md) component.
[10854] Fix | Delete
*
[10855] Fix | Delete
* @example
[10856] Fix | Delete
* ```js
[10857] Fix | Delete
* // Using ES5 syntax
[10858] Fix | Delete
* var __ = wp.i18n.__;
[10859] Fix | Delete
* var PluginMoreMenuItem = wp.editor.PluginMoreMenuItem;
[10860] Fix | Delete
* var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
[10861] Fix | Delete
*
[10862] Fix | Delete
* function onButtonClick() {
[10863] Fix | Delete
* alert( 'Button clicked.' );
[10864] Fix | Delete
* }
[10865] Fix | Delete
*
[10866] Fix | Delete
* function MyButtonMoreMenuItem() {
[10867] Fix | Delete
* return wp.element.createElement(
[10868] Fix | Delete
* PluginMoreMenuItem,
[10869] Fix | Delete
* {
[10870] Fix | Delete
* icon: moreIcon,
[10871] Fix | Delete
* onClick: onButtonClick,
[10872] Fix | Delete
* },
[10873] Fix | Delete
* __( 'My button title' )
[10874] Fix | Delete
* );
[10875] Fix | Delete
* }
[10876] Fix | Delete
* ```
[10877] Fix | Delete
*
[10878] Fix | Delete
* @example
[10879] Fix | Delete
* ```jsx
[10880] Fix | Delete
* // Using ESNext syntax
[10881] Fix | Delete
* import { __ } from '@wordpress/i18n';
[10882] Fix | Delete
* import { PluginMoreMenuItem } from '@wordpress/editor';
[10883] Fix | Delete
* import { more } from '@wordpress/icons';
[10884] Fix | Delete
*
[10885] Fix | Delete
* function onButtonClick() {
[10886] Fix | Delete
* alert( 'Button clicked.' );
[10887] Fix | Delete
* }
[10888] Fix | Delete
*
[10889] Fix | Delete
* const MyButtonMoreMenuItem = () => (
[10890] Fix | Delete
* <PluginMoreMenuItem
[10891] Fix | Delete
* icon={ more }
[10892] Fix | Delete
* onClick={ onButtonClick }
[10893] Fix | Delete
* >
[10894] Fix | Delete
* { __( 'My button title' ) }
[10895] Fix | Delete
* </PluginMoreMenuItem>
[10896] Fix | Delete
* );
[10897] Fix | Delete
* ```
[10898] Fix | Delete
*
[10899] Fix | Delete
* @return {Component} The component to be rendered.
[10900] Fix | Delete
*/
[10901] Fix | Delete
/* harmony default export */ const plugin_more_menu_item = ((0,external_wp_compose_namespaceObject.compose)((0,external_wp_plugins_namespaceObject.withPluginContext)((context, ownProps) => {
[10902] Fix | Delete
var _ownProps$as;
[10903] Fix | Delete
return {
[10904] Fix | Delete
as: (_ownProps$as = ownProps.as) !== null && _ownProps$as !== void 0 ? _ownProps$as : external_wp_components_namespaceObject.MenuItem,
[10905] Fix | Delete
icon: ownProps.icon || context.icon,
[10906] Fix | Delete
name: 'core/plugin-more-menu'
[10907] Fix | Delete
};
[10908] Fix | Delete
}))(action_item));
[10909] Fix | Delete
[10910] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-post-publish-panel/index.js
[10911] Fix | Delete
/**
[10912] Fix | Delete
* WordPress dependencies
[10913] Fix | Delete
*/
[10914] Fix | Delete
[10915] Fix | Delete
[10916] Fix | Delete
[10917] Fix | Delete
const {
[10918] Fix | Delete
Fill: plugin_post_publish_panel_Fill,
[10919] Fix | Delete
Slot: plugin_post_publish_panel_Slot
[10920] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostPublishPanel');
[10921] Fix | Delete
[10922] Fix | Delete
/**
[10923] Fix | Delete
* Renders provided content to the post-publish panel in the publish flow
[10924] Fix | Delete
* (side panel that opens after a user publishes the post).
[10925] Fix | Delete
*
[10926] Fix | Delete
* @param {Object} props Component properties.
[10927] Fix | Delete
* @param {string} [props.className] An optional class name added to the panel.
[10928] Fix | Delete
* @param {string} [props.title] Title displayed at the top of the panel.
[10929] Fix | Delete
* @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
[10930] Fix | Delete
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
[10931] Fix | Delete
* @param {Element} props.children Children to be rendered
[10932] Fix | Delete
*
[10933] Fix | Delete
* @example
[10934] Fix | Delete
* ```jsx
[10935] Fix | Delete
* // Using ESNext syntax
[10936] Fix | Delete
* import { __ } from '@wordpress/i18n';
[10937] Fix | Delete
* import { PluginPostPublishPanel } from '@wordpress/editor';
[10938] Fix | Delete
*
[10939] Fix | Delete
* const MyPluginPostPublishPanel = () => (
[10940] Fix | Delete
* <PluginPostPublishPanel
[10941] Fix | Delete
* className="my-plugin-post-publish-panel"
[10942] Fix | Delete
* title={ __( 'My panel title' ) }
[10943] Fix | Delete
* initialOpen={ true }
[10944] Fix | Delete
* >
[10945] Fix | Delete
* { __( 'My panel content' ) }
[10946] Fix | Delete
* </PluginPostPublishPanel>
[10947] Fix | Delete
* );
[10948] Fix | Delete
* ```
[10949] Fix | Delete
*
[10950] Fix | Delete
* @return {Component} The component to be rendered.
[10951] Fix | Delete
*/
[10952] Fix | Delete
const PluginPostPublishPanel = ({
[10953] Fix | Delete
children,
[10954] Fix | Delete
className,
[10955] Fix | Delete
title,
[10956] Fix | Delete
initialOpen = false,
[10957] Fix | Delete
icon
[10958] Fix | Delete
}) => {
[10959] Fix | Delete
const {
[10960] Fix | Delete
icon: pluginIcon
[10961] Fix | Delete
} = (0,external_wp_plugins_namespaceObject.usePluginContext)();
[10962] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(plugin_post_publish_panel_Fill, {
[10963] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.PanelBody, {
[10964] Fix | Delete
className: className,
[10965] Fix | Delete
initialOpen: initialOpen || !title,
[10966] Fix | Delete
title: title,
[10967] Fix | Delete
icon: icon !== null && icon !== void 0 ? icon : pluginIcon,
[10968] Fix | Delete
children: children
[10969] Fix | Delete
})
[10970] Fix | Delete
});
[10971] Fix | Delete
};
[10972] Fix | Delete
PluginPostPublishPanel.Slot = plugin_post_publish_panel_Slot;
[10973] Fix | Delete
/* harmony default export */ const plugin_post_publish_panel = (PluginPostPublishPanel);
[10974] Fix | Delete
[10975] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/plugin-post-status-info/index.js
[10976] Fix | Delete
/**
[10977] Fix | Delete
* Defines as extensibility slot for the Summary panel.
[10978] Fix | Delete
*/
[10979] Fix | Delete
[10980] Fix | Delete
/**
[10981] Fix | Delete
* WordPress dependencies
[10982] Fix | Delete
*/
[10983] Fix | Delete
[10984] Fix | Delete
[10985] Fix | Delete
const {
[10986] Fix | Delete
Fill: plugin_post_status_info_Fill,
[10987] Fix | Delete
Slot: plugin_post_status_info_Slot
[10988] Fix | Delete
} = (0,external_wp_components_namespaceObject.createSlotFill)('PluginPostStatusInfo');
[10989] Fix | Delete
[10990] Fix | Delete
/**
[10991] Fix | Delete
* Renders a row in the Summary panel of the Document sidebar.
[10992] Fix | Delete
* It should be noted that this is named and implemented around the function it serves
[10993] Fix | Delete
* and not its location, which may change in future iterations.
[10994] Fix | Delete
*
[10995] Fix | Delete
* @param {Object} props Component properties.
[10996] Fix | Delete
* @param {string} [props.className] An optional class name added to the row.
[10997] Fix | Delete
* @param {Element} props.children Children to be rendered.
[10998] Fix | Delete
*
[10999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function