wordpress update 6.6.2
This commit is contained in:
7
wp/wp-includes/js/dist/edit-site.js
vendored
7
wp/wp-includes/js/dist/edit-site.js
vendored
@@ -25133,6 +25133,9 @@ function bulk_actions_ActionWithModal({
|
||||
const onCloseModal = (0,external_wp_element_namespaceObject.useCallback)(() => {
|
||||
setActionWithModal(undefined);
|
||||
}, [setActionWithModal]);
|
||||
if (!eligibleItems.length) {
|
||||
return null;
|
||||
}
|
||||
const label = typeof action.label === 'string' ? action.label : action.label(selectedItems);
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Modal, {
|
||||
title: !hideModalHeader ? label : undefined,
|
||||
@@ -35575,7 +35578,7 @@ function usePostTypeArchiveMenuItems() {
|
||||
// `icon` is the `menu_icon` property of a post type. We
|
||||
// only handle `dashicons` for now, even if the `menu_icon`
|
||||
// also supports urls and svg as values.
|
||||
icon: postType.icon?.startsWith('dashicons-') ? postType.icon.slice(10) : library_archive,
|
||||
icon: typeof postType.icon === 'string' && postType.icon.startsWith('dashicons-') ? postType.icon.slice(10) : library_archive,
|
||||
templatePrefix: 'archive'
|
||||
};
|
||||
}) || [], [postTypesWithArchives, existingTemplates, needsUniqueIdentifier]);
|
||||
@@ -35653,7 +35656,7 @@ const usePostTypeMenuItems = onClickMenuItem => {
|
||||
// `icon` is the `menu_icon` property of a post type. We
|
||||
// only handle `dashicons` for now, even if the `menu_icon`
|
||||
// also supports urls and svg as values.
|
||||
icon: icon?.startsWith('dashicons-') ? icon.slice(10) : library_post,
|
||||
icon: typeof icon === 'string' && icon.startsWith('dashicons-') ? icon.slice(10) : library_post,
|
||||
templatePrefix: templatePrefixes[slug]
|
||||
};
|
||||
const hasEntities = postTypesInfo?.[slug]?.hasEntities;
|
||||
|
||||
Reference in New Issue
Block a user