: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* true = the user has opted to show the Custom Fields panel at the bottom of the editor.
* false = the user has opted to hide the Custom Fields panel at the bottom of the editor.
* undefined = the current environment does not support Custom Fields, so the option toggle in Preferences -> Panels to enable the Custom Fields panel is not displayed.
* @property {number} autosaveInterval How often in seconds the post will be auto-saved via the REST API.
* @property {number} localAutosaveInterval How often in seconds the post will be backed up to sessionStorage.
* @property {Array?} availableTemplates The available post templates
* @property {boolean} disablePostFormats Whether or not the post formats are disabled
* @property {Array?} allowedMimeTypes List of allowed mime types and file extensions
* @property {number} maxUploadFileSize Maximum upload file size
* @property {boolean} supportsLayout Whether the editor supports layouts.
const EDITOR_SETTINGS_DEFAULTS = {
...external_wp_blockEditor_namespaceObject.SETTINGS_DEFAULTS,
richEditingEnabled: true,
codeEditingEnabled: true,
fontLibraryEnabled: true,
enableCustomFields: undefined,
defaultRenderingMode: 'post-only'
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/reducer.js
* Returns a post attribute value, flattening nested rendered content using its
* raw value in place of its original object form.
* @param {*} value Original value.
function getPostRawValue(value) {
if (value && 'object' === typeof value && 'raw' in value) {
* Returns true if the two object arguments have the same keys, or false
* @param {Object} a First object.
* @param {Object} b Second object.
* @return {boolean} Whether the two objects have the same keys.
function hasSameKeys(a, b) {
const keysA = Object.keys(a).sort();
const keysB = Object.keys(b).sort();
return keysA.length === keysB.length && keysA.every((key, index) => keysB[index] === key);
* Returns true if, given the currently dispatching action and the previously
* dispatched action, the two actions are editing the same post property, or
* @param {Object} action Currently dispatching action.
* @param {Object} previousAction Previously dispatched action.
* @return {boolean} Whether actions are updating the same post property.
function isUpdatingSamePostProperty(action, previousAction) {
return action.type === 'EDIT_POST' && hasSameKeys(action.edits, previousAction.edits);
* Returns true if, given the currently dispatching action and the previously
* dispatched action, the two actions are modifying the same property such that
* undo history should be batched.
* @param {Object} action Currently dispatching action.
* @param {Object} previousAction Previously dispatched action.
* @return {boolean} Whether to overwrite present state.
function shouldOverwriteState(action, previousAction) {
if (action.type === 'RESET_EDITOR_BLOCKS') {
return !action.shouldCreateUndoLevel;
if (!previousAction || action.type !== previousAction.type) {
return isUpdatingSamePostProperty(action, previousAction);
function postId(state = null, action) {
function templateId(state = null, action) {
case 'SET_CURRENT_TEMPLATE_ID':
function postType(state = null, action) {
* Reducer returning whether the post blocks match the defined template or not.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
* @return {boolean} Updated state.
function template(state = {
case 'SET_TEMPLATE_VALIDITY':
* Reducer returning current network request state (whether a request to
* the WP REST API is in progress, successful, or failed).
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
* @return {Object} Updated state.
function saving(state = {}, action) {
case 'REQUEST_POST_UPDATE_START':
case 'REQUEST_POST_UPDATE_FINISH':
pending: action.type === 'REQUEST_POST_UPDATE_START',
options: action.options || {}
* Reducer returning deleting post request state.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
* @return {Object} Updated state.
function deleting(state = {}, action) {
case 'REQUEST_POST_DELETE_START':
case 'REQUEST_POST_DELETE_FINISH':
pending: action.type === 'REQUEST_POST_DELETE_START'
* @typedef {Object} PostLockState
* @property {boolean} isLocked Whether the post is locked.
* @property {?boolean} isTakeover Whether the post editing has been taken over.
* @property {?boolean} activePostLock Active post lock value.
* @property {?Object} user User that took over the post.
* Reducer returning the post lock status.
* @param {PostLockState} state Current state.
* @param {Object} action Dispatched action.
* @return {PostLockState} Updated state.
function postLock(state = {
* When post saving is locked, the post cannot be published or updated.
* @param {PostLockState} state Current state.
* @param {Object} action Dispatched action.
* @return {PostLockState} Updated state.
function postSavingLock(state = {}, action) {
case 'UNLOCK_POST_SAVING':
[action.lockName]: removedLockName,
* When post autosaving is locked, the post will not autosave.
* @param {PostLockState} state Current state.
* @param {Object} action Dispatched action.
* @return {PostLockState} Updated state.
function postAutosavingLock(state = {}, action) {
case 'LOCK_POST_AUTOSAVING':
case 'UNLOCK_POST_AUTOSAVING':
[action.lockName]: removedLockName,
* Reducer returning the post editor setting.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
* @return {Object} Updated state.
function editorSettings(state = EDITOR_SETTINGS_DEFAULTS, action) {
case 'UPDATE_EDITOR_SETTINGS':
function renderingMode(state = 'post-only', action) {
case 'SET_RENDERING_MODE':
* Reducer returning the editing canvas device type.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
* @return {Object} Updated state.
function deviceType(state = 'Desktop', action) {
return action.deviceType;
* Reducer storing the list of all programmatically removed panels.
* @param {Array} state Current state.
* @param {Object} action Action object.
* @return {Array} Updated state.
function removedPanels(state = [], action) {
if (!state.includes(action.panelName)) {
return [...state, action.panelName];
* Reducer to set the block inserter panel open or closed.
* Note: this reducer interacts with the list view panel reducer
* to make sure that only one of the two panels is open at the same time.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
function blockInserterPanel(state = false, action) {
case 'SET_IS_LIST_VIEW_OPENED':
return action.isOpen ? false : state;
case 'SET_IS_INSERTER_OPENED':
* Reducer to set the list view panel open or closed.
* Note: this reducer interacts with the inserter panel reducer
* to make sure that only one of the two panels is open at the same time.
* @param {Object} state Current state.
* @param {Object} action Dispatched action.
function listViewPanel(state = false, action) {
case 'SET_IS_INSERTER_OPENED':
return action.value ? false : state;
case 'SET_IS_LIST_VIEW_OPENED':
* This reducer does nothing aside initializing a ref to the list view toggle.
* We will have a unique ref per "editor" instance.
* @return {Object} Reference to the list view toggle button.
function listViewToggleRef(state = {
* This reducer does nothing aside initializing a ref to the inserter sidebar toggle.
* We will have a unique ref per "editor" instance.
* @return {Object} Reference to the inserter sidebar toggle button.
function inserterSidebarToggleRef(state = {
function publishSidebarActive(state = false, action) {
case 'OPEN_PUBLISH_SIDEBAR':
case 'CLOSE_PUBLISH_SIDEBAR':
case 'TOGGLE_PUBLISH_SIDEBAR':
/* harmony default export */ const reducer = ((0,external_wp_data_namespaceObject.combineReducers)({
inserterSidebarToggleRef,
;// CONCATENATED MODULE: external ["wp","date"]
const external_wp_date_namespaceObject = window["wp"]["date"];
;// CONCATENATED MODULE: external ["wp","url"]
const external_wp_url_namespaceObject = window["wp"]["url"];
;// CONCATENATED MODULE: external ["wp","deprecated"]
const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
;// CONCATENATED MODULE: external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
;// CONCATENATED MODULE: external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
;// CONCATENATED MODULE: external "ReactJSXRuntime"
const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js
const layout = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
/* harmony default export */ const library_layout = (layout);
;// CONCATENATED MODULE: external ["wp","preferences"]
const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/store/constants.js
* Set of post properties for which edits should assume a merging behavior,
* assuming an object value.
const EDIT_MERGE_PROPERTIES = new Set(['meta']);
* Constant for the store module (or reducer) key.
const STORE_NAME = 'core/editor';
const SAVE_POST_NOTICE_ID = 'SAVE_POST_NOTICE_ID';
const TRASH_POST_NOTICE_ID = 'TRASH_POST_NOTICE_ID';
const PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/;
const ONE_MINUTE_IN_MS = 60 * 1000;
const AUTOSAVE_PROPERTIES = ['title', 'excerpt', 'content'];
const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
const TEMPLATE_POST_TYPE = 'wp_template';
const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
const PATTERN_POST_TYPE = 'wp_block';
const NAVIGATION_POST_TYPE = 'wp_navigation';
const TEMPLATE_ORIGINS = {
const TEMPLATE_POST_TYPES = ['wp_template', 'wp_template_part'];
const GLOBAL_POST_TYPES = [...TEMPLATE_POST_TYPES, 'wp_block', 'wp_navigation'];
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/header.js
const header = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
d: "M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
/* harmony default export */ const library_header = (header);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/footer.js