mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Editor: update npm packages in trunk for 6.7.1.
Syncs Editor packages for WordPress 6.7.1 RC1. Includes the following PRs: - https://github.com/WordPress/gutenberg/pull/66945 - https://github.com/WordPress/gutenberg/pull/66889 - https://github.com/WordPress/gutenberg/pull/67139 Reviewed by desrosj. Merges [59437] to trunk. Props mmaattiiaass, ramonopoly, mamaduka, get_dave, poena, ntsekouras, mcsf, jsnajdr, 0mirka00, desrosj, joemcgill, cbravobernal, azaozz, room34, mayanktripathi32, im3dabasia1, jonsurrell. Fixes #62478, #62447. Built from https://develop.svn.wordpress.org/trunk@59438 git-svn-id: http://core.svn.wordpress.org/trunk@58824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d37c855db1
commit
6efab4c237
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
wp-includes/js/dist/block-editor.js
vendored
3
wp-includes/js/dist/block-editor.js
vendored
@ -47222,7 +47222,8 @@ function PatternList({
|
||||
return true;
|
||||
}
|
||||
if (selectedCategory === 'uncategorized') {
|
||||
const hasKnownCategory = pattern.categories.some(category => registeredPatternCategories.includes(category));
|
||||
var _pattern$categories$s;
|
||||
const hasKnownCategory = (_pattern$categories$s = pattern.categories?.some(category => registeredPatternCategories.includes(category))) !== null && _pattern$categories$s !== void 0 ? _pattern$categories$s : false;
|
||||
return !pattern.categories?.length || !hasKnownCategory;
|
||||
}
|
||||
return pattern.categories?.includes(selectedCategory);
|
||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
4
wp-includes/js/dist/components.js
vendored
4
wp-includes/js/dist/components.js
vendored
@ -57454,7 +57454,9 @@ function FormFileUpload({
|
||||
// @todo: Temporary fix a bug that prevents Chromium browsers from selecting ".heic" files
|
||||
// from the file upload. See https://core.trac.wordpress.org/ticket/62268#comment:4.
|
||||
// This can be removed once the Chromium fix is in the stable channel.
|
||||
const compatAccept = !!accept?.includes('image/*') ? `${accept}, image/heic, image/heif` : accept;
|
||||
// Prevent Safari from adding "image/heic" and "image/heif" to the accept attribute.
|
||||
const isSafari = globalThis.window?.navigator.userAgent.includes('Safari') && !globalThis.window?.navigator.userAgent.includes('Chrome') && !globalThis.window?.navigator.userAgent.includes('Chromium');
|
||||
const compatAccept = !isSafari && !!accept?.includes('image/*') ? `${accept}, image/heic, image/heif` : accept;
|
||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||
className: "components-form-file-upload",
|
||||
children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
|
||||
|
2
wp-includes/js/dist/components.min.js
vendored
2
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/editor.js
vendored
2
wp-includes/js/dist/editor.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/editor.min.js
vendored
2
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/fields.js
vendored
2
wp-includes/js/dist/fields.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/fields.min.js
vendored
2
wp-includes/js/dist/fields.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/patterns.js
vendored
2
wp-includes/js/dist/patterns.js
vendored
@ -683,7 +683,7 @@ function CreatePatternModalContents({
|
||||
function getTermLabels(pattern, categories) {
|
||||
// Theme patterns rely on core pattern categories.
|
||||
if (pattern.type !== PATTERN_TYPES.user) {
|
||||
return categories.core?.filter(category => pattern.categories.includes(category.name)).map(category => category.label);
|
||||
return categories.core?.filter(category => pattern.categories?.includes(category.name)).map(category => category.label);
|
||||
}
|
||||
return categories.user?.filter(category => pattern.wp_pattern_category.includes(category.id)).map(category => category.label);
|
||||
}
|
||||
|
2
wp-includes/js/dist/patterns.min.js
vendored
2
wp-includes/js/dist/patterns.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59431';
|
||||
$wp_version = '6.8-alpha-59438';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user