mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Editor: Update packages for 6.7 RC 3
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag. Props kevin940726, ramonopoly, andrewserong. Built from https://develop.svn.wordpress.org/trunk@59330 git-svn-id: http://core.svn.wordpress.org/trunk@58716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
74cf68a167
commit
1522e2f001
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -46,7 +46,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$author_name = get_the_author_meta( 'display_name', $author_id );
|
$author_name = get_the_author_meta( 'display_name', $author_id );
|
||||||
// translators: %s is the Author name.
|
// translators: %s: Author name.
|
||||||
$alt = sprintf( __( '%s Avatar' ), $author_name );
|
$alt = sprintf( __( '%s Avatar' ), $author_name );
|
||||||
$avatar_block = get_avatar(
|
$avatar_block = get_avatar(
|
||||||
$author_id,
|
$author_id,
|
||||||
@ -64,7 +64,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|||||||
// translators: %s is the Author name.
|
// translators: %s is the Author name.
|
||||||
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
|
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s author archive, opens in a new tab)' ), $author_name ) ) . '"';
|
||||||
}
|
}
|
||||||
// translators: %1$s: Author archive link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
|
// translators: 1: Author archive link. 2: Link target. %3$s Aria label. %4$s Avatar image.
|
||||||
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
||||||
}
|
}
|
||||||
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
||||||
@ -73,7 +73,7 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|||||||
if ( ! $comment ) {
|
if ( ! $comment ) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
/* translators: %s is the Comment Author name */
|
/* translators: %s: Author name. */
|
||||||
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
|
$alt = sprintf( __( '%s Avatar' ), $comment->comment_author );
|
||||||
$avatar_block = get_avatar(
|
$avatar_block = get_avatar(
|
||||||
$comment,
|
$comment,
|
||||||
@ -88,10 +88,9 @@ function render_block_core_avatar( $attributes, $content, $block ) {
|
|||||||
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $comment->comment_author_url ) && '' !== $comment->comment_author_url ) {
|
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $comment->comment_author_url ) && '' !== $comment->comment_author_url ) {
|
||||||
$label = '';
|
$label = '';
|
||||||
if ( '_blank' === $attributes['linkTarget'] ) {
|
if ( '_blank' === $attributes['linkTarget'] ) {
|
||||||
// translators: %s is the Comment Author name.
|
// translators: %s: Comment author name.
|
||||||
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
|
$label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"';
|
||||||
}
|
}
|
||||||
// translators: %1$s: Comment Author website link. %2$s: Link target. %3$s Aria label. %4$s Avatar image.
|
|
||||||
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
$avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block );
|
||||||
}
|
}
|
||||||
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block );
|
||||||
|
@ -123,7 +123,7 @@ function render_block_core_latest_posts( $attributes ) {
|
|||||||
if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) {
|
if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) {
|
||||||
$author_display_name = get_the_author_meta( 'display_name', $post->post_author );
|
$author_display_name = get_the_author_meta( 'display_name', $post->post_author );
|
||||||
|
|
||||||
/* translators: byline. %s: current author. */
|
/* translators: byline. %s: author. */
|
||||||
$byline = sprintf( __( 'by %s' ), $author_display_name );
|
$byline = sprintf( __( 'by %s' ), $author_display_name );
|
||||||
|
|
||||||
if ( ! empty( $author_display_name ) ) {
|
if ( ! empty( $author_display_name ) ) {
|
||||||
|
@ -62,7 +62,7 @@ function render_block_core_rss( $attributes ) {
|
|||||||
if ( is_object( $author ) ) {
|
if ( is_object( $author ) ) {
|
||||||
$author = $author->get_name();
|
$author = $author->get_name();
|
||||||
$author = '<span class="wp-block-rss__item-author">' . sprintf(
|
$author = '<span class="wp-block-rss__item-author">' . sprintf(
|
||||||
/* translators: %s: the author. */
|
/* translators: byline. %s: author. */
|
||||||
__( 'by %s' ),
|
__( 'by %s' ),
|
||||||
esc_html( strip_tags( $author ) )
|
esc_html( strip_tags( $author ) )
|
||||||
) . '</span>';
|
) . '</span>';
|
||||||
|
12
wp-includes/js/dist/block-directory.js
vendored
12
wp-includes/js/dist/block-directory.js
vendored
@ -1554,24 +1554,24 @@ function getDownloadableBlockLabel({
|
|||||||
}) {
|
}) {
|
||||||
const stars = Math.round(rating / 0.5) * 0.5;
|
const stars = Math.round(rating / 0.5) * 0.5;
|
||||||
if (!isInstalled && hasNotice) {
|
if (!isInstalled && hasNotice) {
|
||||||
/* translators: %1$s: block title */
|
/* translators: %s: block title */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)('Retry installing %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
return (0,external_wp_i18n_namespaceObject.sprintf)('Retry installing %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
||||||
}
|
}
|
||||||
if (isInstalled) {
|
if (isInstalled) {
|
||||||
/* translators: %1$s: block title */
|
/* translators: %s: block title */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)('Add %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
return (0,external_wp_i18n_namespaceObject.sprintf)('Add %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
||||||
}
|
}
|
||||||
if (isInstalling) {
|
if (isInstalling) {
|
||||||
/* translators: %1$s: block title */
|
/* translators: %s: block title */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)('Installing %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
return (0,external_wp_i18n_namespaceObject.sprintf)('Installing %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
||||||
}
|
}
|
||||||
|
|
||||||
// No ratings yet, just use the title.
|
// No ratings yet, just use the title.
|
||||||
if (ratingCount < 1) {
|
if (ratingCount < 1) {
|
||||||
/* translators: %1$s: block title */
|
/* translators: %s: block title */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)('Install %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
return (0,external_wp_i18n_namespaceObject.sprintf)('Install %s.', (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
|
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: block title, 2: average rating, 3: total ratings count. */
|
||||||
(0,external_wp_i18n_namespaceObject._n)('Install %1$s. %2$s stars with %3$s review.', 'Install %1$s. %2$s stars with %3$s reviews.', ratingCount), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), stars, ratingCount);
|
(0,external_wp_i18n_namespaceObject._n)('Install %1$s. %2$s stars with %3$s review.', 'Install %1$s. %2$s stars with %3$s reviews.', ratingCount), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), stars, ratingCount);
|
||||||
}
|
}
|
||||||
function DownloadableBlockListItem({
|
function DownloadableBlockListItem({
|
||||||
@ -1644,7 +1644,7 @@ function DownloadableBlockListItem({
|
|||||||
className: "block-directory-downloadable-block-list-item__details",
|
className: "block-directory-downloadable-block-list-item__details",
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||||
className: "block-directory-downloadable-block-list-item__title",
|
className: "block-directory-downloadable-block-list-item__title",
|
||||||
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: block title, %2$s: author name. */
|
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: block title. 2: author name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
|
(0,external_wp_i18n_namespaceObject.__)('%1$s <span>by %2$s</span>'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), author), {
|
||||||
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||||
className: "block-directory-downloadable-block-list-item__author"
|
className: "block-directory-downloadable-block-list-item__author"
|
||||||
|
26
wp-includes/js/dist/block-editor.js
vendored
26
wp-includes/js/dist/block-editor.js
vendored
@ -16716,7 +16716,7 @@ function getFontStylesAndWeights(fontFamilyFaces) {
|
|||||||
value: weightValue
|
value: weightValue
|
||||||
}) => {
|
}) => {
|
||||||
const optionName = styleValue === 'normal' ? weightName : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Font weight name. 2: Font style name. */
|
const optionName = styleValue === 'normal' ? weightName : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Font weight name. 2: Font style name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s %2$s'), weightName, styleName);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s %2$s', 'font'), weightName, styleName);
|
||||||
combinedStyleAndWeightOptions.push({
|
combinedStyleAndWeightOptions.push({
|
||||||
key: `${styleValue}-${weightValue}`,
|
key: `${styleValue}-${weightValue}`,
|
||||||
name: optionName,
|
name: optionName,
|
||||||
@ -22008,7 +22008,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
|
|||||||
showSuggestions: !!suggestions.length
|
showSuggestions: !!suggestions.length
|
||||||
});
|
});
|
||||||
if (!!suggestions.length) {
|
if (!!suggestions.length) {
|
||||||
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of results. */
|
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
|
||||||
(0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', suggestions.length), suggestions.length), 'assertive');
|
(0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', suggestions.length), suggestions.length), 'assertive');
|
||||||
} else {
|
} else {
|
||||||
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
|
this.props.debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
|
||||||
@ -30426,7 +30426,7 @@ function SpacingInputControl({
|
|||||||
if (showCustomValueInSelectList) {
|
if (showCustomValueInSelectList) {
|
||||||
selectListSizes = [...spacingSizes, {
|
selectListSizes = [...spacingSizes, {
|
||||||
name: !isMixed ?
|
name: !isMixed ?
|
||||||
// translators: A custom measurement, eg. a number followed by a unit like 12px.
|
// translators: %s: A custom measurement, e.g. a number followed by a unit like 12px.
|
||||||
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Custom (%s)'), value) : (0,external_wp_i18n_namespaceObject.__)('Mixed'),
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Custom (%s)'), value) : (0,external_wp_i18n_namespaceObject.__)('Mixed'),
|
||||||
slug: 'custom',
|
slug: 'custom',
|
||||||
size: value
|
size: value
|
||||||
@ -30477,8 +30477,8 @@ function SpacingInputControl({
|
|||||||
const sideLabel = ALL_SIDES.includes(side) && showSideInLabel ? LABELS[side] : '';
|
const sideLabel = ALL_SIDES.includes(side) && showSideInLabel ? LABELS[side] : '';
|
||||||
const typeLabel = showSideInLabel ? type?.toLowerCase() : type;
|
const typeLabel = showSideInLabel ? type?.toLowerCase() : type;
|
||||||
const ariaLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
|
const ariaLabel = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: 1: The side of the block being modified (top, bottom, left, All sides etc.). 2. Type of spacing being modified (Padding, margin, etc)
|
// translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s %2$s'), sideLabel, typeLabel).trim();
|
(0,external_wp_i18n_namespaceObject._x)('%1$s %2$s', 'spacing'), sideLabel, typeLabel).trim();
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||||
className: "spacing-sizes-control__wrapper",
|
className: "spacing-sizes-control__wrapper",
|
||||||
children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
|
children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Icon, {
|
||||||
@ -30890,8 +30890,8 @@ function SpacingSizesControl({
|
|||||||
};
|
};
|
||||||
const sideLabel = ALL_SIDES.includes(view) && showSideInLabel ? LABELS[view] : '';
|
const sideLabel = ALL_SIDES.includes(view) && showSideInLabel ? LABELS[view] : '';
|
||||||
const label = (0,external_wp_i18n_namespaceObject.sprintf)(
|
const label = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: 2. Type of spacing being modified (Padding, margin, etc). 1: The side of the block being modified (top, bottom, left etc.).
|
// translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s %2$s'), labelProp, sideLabel).trim();
|
(0,external_wp_i18n_namespaceObject._x)('%1$s %2$s', 'spacing'), labelProp, sideLabel).trim();
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
|
||||||
className: "spacing-sizes-control",
|
className: "spacing-sizes-control",
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||||
@ -36493,8 +36493,8 @@ function BlockCard({
|
|||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
|
||||||
className: "block-editor-block-card__title",
|
className: "block-editor-block-card__title",
|
||||||
children: name?.length ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: name?.length ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: Custom block name. %2$s: Block title.
|
// translators: 1: Custom block name. 2: Block title.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), name, title) : title
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'block label'), name, title) : title
|
||||||
}), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
}), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||||
className: "block-editor-block-card__description",
|
className: "block-editor-block-card__description",
|
||||||
children: description
|
children: description
|
||||||
@ -46370,7 +46370,7 @@ function Pagination({
|
|||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||||
variant: "muted",
|
variant: "muted",
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: Current page number, %2$s: Total number of pages.
|
// translators: 1: Current page number. 2: Total number of pages.
|
||||||
(0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
|
(0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||||
expanded: false,
|
expanded: false,
|
||||||
@ -58887,7 +58887,7 @@ const useTransformCommands = () => {
|
|||||||
} = transformation;
|
} = transformation;
|
||||||
return {
|
return {
|
||||||
name: 'core/block-editor/transform-to-' + name.replace('/', '-'),
|
name: 'core/block-editor/transform-to-' + name.replace('/', '-'),
|
||||||
// translators: %s: block title/name.
|
/* translators: %s: Block or block variation name. */
|
||||||
label: (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Transform to %s'), title),
|
label: (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Transform to %s'), title),
|
||||||
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
|
icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_icon, {
|
||||||
icon: icon
|
icon: icon
|
||||||
@ -63186,7 +63186,7 @@ function VariationsButtons({
|
|||||||
showColors: true
|
showColors: true
|
||||||
}),
|
}),
|
||||||
isPressed: selectedValue === variation.name,
|
isPressed: selectedValue === variation.name,
|
||||||
label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
|
label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Block or block variation name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title),
|
(0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title),
|
||||||
onClick: () => onSelectVariation(variation.name),
|
onClick: () => onSelectVariation(variation.name),
|
||||||
"aria-label": variation.title,
|
"aria-label": variation.title,
|
||||||
@ -63254,7 +63254,7 @@ function VariationsToggleGroupControl({
|
|||||||
showColors: true
|
showColors: true
|
||||||
}),
|
}),
|
||||||
value: variation.name,
|
value: variation.name,
|
||||||
label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Name of the block variation */
|
label: selectedValue === variation.name ? variation.title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Block or block variation name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title)
|
(0,external_wp_i18n_namespaceObject.__)('Transform to %s'), variation.title)
|
||||||
}, variation.name))
|
}, variation.name))
|
||||||
})
|
})
|
||||||
|
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
31
wp-includes/js/dist/block-library.js
vendored
31
wp-includes/js/dist/block-library.js
vendored
@ -1981,9 +1981,8 @@ function useCommentAvatar({
|
|||||||
src: avatarUrls ? avatarUrls[avatarUrls.length - 1] : defaultAvatar,
|
src: avatarUrls ? avatarUrls[avatarUrls.length - 1] : defaultAvatar,
|
||||||
minSize,
|
minSize,
|
||||||
maxSize,
|
maxSize,
|
||||||
// translators: %s is the Author name.
|
|
||||||
alt: authorName ?
|
alt: authorName ?
|
||||||
// translators: %s is the Author name.
|
// translators: %s: Author name.
|
||||||
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s Avatar'), authorName) : (0,external_wp_i18n_namespaceObject.__)('Default Avatar')
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s Avatar'), authorName) : (0,external_wp_i18n_namespaceObject.__)('Default Avatar')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -2021,7 +2020,7 @@ function useUserAvatar({
|
|||||||
minSize,
|
minSize,
|
||||||
maxSize,
|
maxSize,
|
||||||
alt: authorDetails ?
|
alt: authorDetails ?
|
||||||
// translators: %s is the Author name.
|
// translators: %s: Author name.
|
||||||
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s Avatar'), authorDetails?.name) : (0,external_wp_i18n_namespaceObject.__)('Default Avatar')
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s Avatar'), authorDetails?.name) : (0,external_wp_i18n_namespaceObject.__)('Default Avatar')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -28448,7 +28447,7 @@ function LatestPostsEdit({
|
|||||||
children: !titleTrimmed ? (0,external_wp_i18n_namespaceObject.__)('(no title)') : null
|
children: !titleTrimmed ? (0,external_wp_i18n_namespaceObject.__)('(no title)') : null
|
||||||
}), displayAuthor && currentAuthor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
}), displayAuthor && currentAuthor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||||
className: "wp-block-latest-posts__post-author",
|
className: "wp-block-latest-posts__post-author",
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: byline. %s: current author. */
|
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: byline. %s: author. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('by %s'), currentAuthor.name)
|
(0,external_wp_i18n_namespaceObject.__)('by %s'), currentAuthor.name)
|
||||||
}), displayPostDate && post.date_gmt && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
|
}), displayPostDate && post.date_gmt && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {
|
||||||
dateTime: (0,external_wp_date_namespaceObject.format)('c', post.date_gmt),
|
dateTime: (0,external_wp_date_namespaceObject.format)('c', post.date_gmt),
|
||||||
@ -33385,14 +33384,14 @@ const moreVertical = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.js
|
|||||||
|
|
||||||
function buildMenuLabel(title, id, status) {
|
function buildMenuLabel(title, id, status) {
|
||||||
if (!title) {
|
if (!title) {
|
||||||
/* translators: %s is the index of the menu in the list of menus. */
|
/* translators: %s: the index of the menu in the list of menus. */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
||||||
}
|
}
|
||||||
if (status === 'publish') {
|
if (status === 'publish') {
|
||||||
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
|
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
|
// translators: 1: title of the menu. 2: status of the menu (draft, pending, etc.).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
|
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
|
||||||
}
|
}
|
||||||
function NavigationMenuSelector({
|
function NavigationMenuSelector({
|
||||||
@ -35469,10 +35468,8 @@ const LinkUITools = ({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* translators: %s: The name of a menu. */
|
|
||||||
|
|
||||||
|
const actionLabel = /* translators: %s: The name of a menu. */(0,external_wp_i18n_namespaceObject.__)("Switch to '%s'");
|
||||||
const actionLabel = (0,external_wp_i18n_namespaceObject.__)("Switch to '%s'");
|
|
||||||
const BLOCKS_WITH_LINK_UI_SUPPORT = ['core/navigation-link', 'core/navigation-submenu'];
|
const BLOCKS_WITH_LINK_UI_SUPPORT = ['core/navigation-link', 'core/navigation-submenu'];
|
||||||
const {
|
const {
|
||||||
PrivateListView
|
PrivateListView
|
||||||
@ -43512,7 +43509,7 @@ function PostFeaturedImageEdit({
|
|||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToggleControl, {
|
||||||
__nextHasNoMarginBottom: true,
|
__nextHasNoMarginBottom: true,
|
||||||
label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
label: postType?.labels.singular_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Name of the post type e.g: "Page".
|
// translators: %s: Name of the post type e.g: "post".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
|
(0,external_wp_i18n_namespaceObject.__)('Link to %s'), postType.labels.singular_name) : (0,external_wp_i18n_namespaceObject.__)('Link to post'),
|
||||||
onChange: () => setAttributes({
|
onChange: () => setAttributes({
|
||||||
isLink: !isLink
|
isLink: !isLink
|
||||||
@ -44879,8 +44876,8 @@ function PostTimeToReadEdit({
|
|||||||
*/
|
*/
|
||||||
const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
|
const wordCountType = (0,external_wp_i18n_namespaceObject._x)('words', 'Word count type. Do not translate!');
|
||||||
const minutesToRead = Math.max(1, Math.round((0,external_wp_wordcount_namespaceObject.count)(content || '', wordCountType) / AVERAGE_READING_RATE));
|
const minutesToRead = Math.max(1, Math.round((0,external_wp_wordcount_namespaceObject.count)(content || '', wordCountType) / AVERAGE_READING_RATE));
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d is the number of minutes the post will take to read. */
|
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the number of minutes to read the post. */
|
||||||
(0,external_wp_i18n_namespaceObject._n)('%d minute', '%d minutes', minutesToRead), minutesToRead);
|
(0,external_wp_i18n_namespaceObject._n)('%s minute', '%s minutes', minutesToRead), minutesToRead);
|
||||||
}, [contentStructure, blocks]);
|
}, [contentStructure, blocks]);
|
||||||
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
|
const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
|
||||||
className: dist_clsx({
|
className: dist_clsx({
|
||||||
@ -47012,11 +47009,11 @@ const orderOptions = [{
|
|||||||
label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
|
label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
|
||||||
value: 'date/asc'
|
value: 'date/asc'
|
||||||
}, {
|
}, {
|
||||||
/* translators: label for ordering posts by title in ascending order */
|
/* translators: Label for ordering posts by title in ascending order. */
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
|
label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
|
||||||
value: 'title/asc'
|
value: 'title/asc'
|
||||||
}, {
|
}, {
|
||||||
/* translators: label for ordering posts by title in descending order */
|
/* translators: Label for ordering posts by title in descending order. */
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
|
label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
|
||||||
value: 'title/desc'
|
value: 'title/desc'
|
||||||
}];
|
}];
|
||||||
@ -50182,7 +50179,7 @@ function QueryTitleEdit({
|
|||||||
if (showPrefix) {
|
if (showPrefix) {
|
||||||
if (archiveNameLabel) {
|
if (archiveNameLabel) {
|
||||||
title = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Archive type title e.g: "Category", 2: Label of the archive e.g: "Shoes" */
|
title = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: Archive type title e.g: "Category", 2: Label of the archive e.g: "Shoes" */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s: %2$s'), archiveTypeLabel, archiveNameLabel);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s: %2$s', 'archive label'), archiveTypeLabel, archiveNameLabel);
|
||||||
} else {
|
} else {
|
||||||
title = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Archive type title e.g: "Category", "Tag"... */
|
title = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Archive type title e.g: "Category", "Tag"... */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%s: Name'), archiveTypeLabel);
|
(0,external_wp_i18n_namespaceObject.__)('%s: Name'), archiveTypeLabel);
|
||||||
@ -61779,7 +61776,7 @@ function TemplatePartEdit({
|
|||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName, {
|
||||||
...blockProps,
|
...blockProps,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, {
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Template part slug */
|
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Template part slug. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Template part has been deleted or is unavailable: %s'), slug)
|
(0,external_wp_i18n_namespaceObject.__)('Template part has been deleted or is unavailable: %s'), slug)
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
@ -63143,7 +63140,7 @@ function TrackList({
|
|||||||
variant: "tertiary",
|
variant: "tertiary",
|
||||||
onClick: () => onEditPress(index),
|
onClick: () => onEditPress(index),
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the video text track e.g: "French subtitles" */
|
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Label of the video text track e.g: "French subtitles" */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Edit %s'), track.label),
|
(0,external_wp_i18n_namespaceObject._x)('Edit %s', 'text tracks'), track.label),
|
||||||
children: (0,external_wp_i18n_namespaceObject.__)('Edit')
|
children: (0,external_wp_i18n_namespaceObject.__)('Edit')
|
||||||
})]
|
})]
|
||||||
}, index);
|
}, index);
|
||||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
30
wp-includes/js/dist/components.js
vendored
30
wp-includes/js/dist/components.js
vendored
@ -39505,7 +39505,7 @@ function UnforwardedColorPalette(props, forwardedRef) {
|
|||||||
// Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
|
// Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
|
||||||
const displayValue = value?.replace(/^var\((.+)\)$/, '$1');
|
const displayValue = value?.replace(/^var\((.+)\)$/, '$1');
|
||||||
const customColorAccessibleLabel = !!displayValue ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
const customColorAccessibleLabel = !!displayValue ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The name of the color e.g: "vivid red". %2$s: The color's hex code e.g: "#f00".
|
// translators: 1: The name of the color e.g: "vivid red". 2: The color's hex code e.g: "#f00".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), buttonLabelName, displayValue) : (0,external_wp_i18n_namespaceObject.__)('Custom color picker.');
|
(0,external_wp_i18n_namespaceObject.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), buttonLabelName, displayValue) : (0,external_wp_i18n_namespaceObject.__)('Custom color picker.');
|
||||||
const paletteCommonProps = {
|
const paletteCommonProps = {
|
||||||
clearColor,
|
clearColor,
|
||||||
@ -40282,30 +40282,30 @@ const getToggleAriaLabel = (colorValue, colorObject, style, isStyleEnabled) => {
|
|||||||
if (colorObject) {
|
if (colorObject) {
|
||||||
const ariaLabelValue = getAriaLabelColorValue(colorObject.color);
|
const ariaLabelValue = getAriaLabelColorValue(colorObject.color);
|
||||||
return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g.: "#f00:". %3$s: The current border style selection e.g. "solid".
|
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:". 3: The current border style selection e.g. "solid".
|
||||||
'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".', colorObject.name, ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".'), colorObject.name, ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g.: "#f00:".
|
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:".
|
||||||
'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".', colorObject.name, ariaLabelValue);
|
(0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), colorObject.name, ariaLabelValue);
|
||||||
}
|
}
|
||||||
if (colorValue) {
|
if (colorValue) {
|
||||||
const ariaLabelValue = getAriaLabelColorValue(colorValue);
|
const ariaLabelValue = getAriaLabelColorValue(colorValue);
|
||||||
return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The color's hex code e.g.: "#f00:". %2$s: The current border style selection e.g. "solid".
|
// translators: 1: The color's hex code e.g.: "#f00:". 2: The current border style selection e.g. "solid".
|
||||||
'Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".', ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".'), ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The color's hex code e.g: "#f00".
|
// translators: %s: The color's hex code e.g: "#f00".
|
||||||
'Border color and style picker. The currently selected color has a value of "%1$s".', ariaLabelValue);
|
(0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color has a value of "%s".'), ariaLabelValue);
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.__)('Border color and style picker.');
|
return (0,external_wp_i18n_namespaceObject.__)('Border color and style picker.');
|
||||||
}
|
}
|
||||||
if (colorObject) {
|
if (colorObject) {
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g: "#f00".
|
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g: "#f00".
|
||||||
'Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".', colorObject.name, getAriaLabelColorValue(colorObject.color));
|
(0,external_wp_i18n_namespaceObject.__)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), colorObject.name, getAriaLabelColorValue(colorObject.color));
|
||||||
}
|
}
|
||||||
if (colorValue) {
|
if (colorValue) {
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: The color's hex code e.g: "#f00".
|
// translators: %s: The color's hex code e.g: "#f00".
|
||||||
'Border color picker. The currently selected color has a value of "%1$s".', getAriaLabelColorValue(colorValue));
|
(0,external_wp_i18n_namespaceObject.__)('Border color picker. The currently selected color has a value of "%s".'), getAriaLabelColorValue(colorValue));
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.__)('Border color picker.');
|
return (0,external_wp_i18n_namespaceObject.__)('Border color picker.');
|
||||||
};
|
};
|
||||||
@ -44407,7 +44407,7 @@ function ControlPointButton({
|
|||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151).
|
// translators: 1: gradient position e.g: 70. 2: gradient color code e.g: rgb(52,121,151).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
|
(0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
|
||||||
"aria-describedby": descriptionId,
|
"aria-describedby": descriptionId,
|
||||||
"aria-haspopup": "true",
|
"aria-haspopup": "true",
|
||||||
@ -66763,7 +66763,7 @@ const OptionalControlsGroup = ({
|
|||||||
// translators: %s: The name of the control being hidden and reset e.g. "Padding".
|
// translators: %s: The name of the control being hidden and reset e.g. "Padding".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: The name of the control to display e.g. "Padding".
|
// translators: %s: The name of the control to display e.g. "Padding".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Show %s'), label);
|
(0,external_wp_i18n_namespaceObject._x)('Show %s', 'input control'), label);
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
|
||||||
icon: isSelected ? library_check : null,
|
icon: isSelected ? library_check : null,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
|
4
wp-includes/js/dist/components.min.js
vendored
4
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/edit-post.js
vendored
2
wp-includes/js/dist/edit-post.js
vendored
@ -3221,7 +3221,7 @@ function Layout({
|
|||||||
const newItem = items[0];
|
const newItem = items[0];
|
||||||
const title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
const title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created post e.g: "Post 1".
|
// translators: %s: Title of the created post or template, e.g: "Hello world".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
|
74
wp-includes/js/dist/edit-site.js
vendored
74
wp-includes/js/dist/edit-site.js
vendored
@ -9093,7 +9093,7 @@ const EntitiesSavedStatesForPreview = ({
|
|||||||
const currentTheme = useActualCurrentTheme();
|
const currentTheme = useActualCurrentTheme();
|
||||||
const previewingTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme(), []);
|
const previewingTheme = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getCurrentTheme(), []);
|
||||||
const additionalPrompt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
|
const additionalPrompt = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: The name of active theme, %2$s: The name of theme to be activated. */
|
children: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: The name of active theme, 2: The name of theme to be activated. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Saving your changes will change your active theme from %1$s to %2$s.'), (_currentTheme$name$re = currentTheme?.name?.rendered) !== null && _currentTheme$name$re !== void 0 ? _currentTheme$name$re : '...', (_previewingTheme$name = previewingTheme?.name?.rendered) !== null && _previewingTheme$name !== void 0 ? _previewingTheme$name : '...')
|
(0,external_wp_i18n_namespaceObject.__)('Saving your changes will change your active theme from %1$s to %2$s.'), (_currentTheme$name$re = currentTheme?.name?.rendered) !== null && _currentTheme$name$re !== void 0 ? _currentTheme$name$re : '...', (_previewingTheme$name = previewingTheme?.name?.rendered) !== null && _previewingTheme$name !== void 0 ? _previewingTheme$name : '...')
|
||||||
});
|
});
|
||||||
const activateTheme = useActivateTheme();
|
const activateTheme = useActivateTheme();
|
||||||
@ -13021,8 +13021,8 @@ function Variation({
|
|||||||
const isActive = (0,external_wp_element_namespaceObject.useMemo)(() => variation_areGlobalStyleConfigsEqual(user, variation), [user, variation]);
|
const isActive = (0,external_wp_element_namespaceObject.useMemo)(() => variation_areGlobalStyleConfigsEqual(user, variation), [user, variation]);
|
||||||
let label = variation?.title;
|
let label = variation?.title;
|
||||||
if (variation?.description) {
|
if (variation?.description) {
|
||||||
label = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s: variation title. %2$s variation description. */
|
label = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: variation title. 2: variation description. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), variation?.title, variation?.description);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'variation label'), variation?.title, variation?.description);
|
||||||
}
|
}
|
||||||
const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
const content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||||
className: dist_clsx('edit-site-global-styles-variations_item', {
|
className: dist_clsx('edit-site-global-styles-variations_item', {
|
||||||
@ -22960,9 +22960,9 @@ function getRevisionLabel(id, authorDisplayName, formattedModifiedDate, areStyle
|
|||||||
(0,external_wp_i18n_namespaceObject.__)('Unsaved changes by %s'), authorDisplayName);
|
(0,external_wp_i18n_namespaceObject.__)('Unsaved changes by %s'), authorDisplayName);
|
||||||
}
|
}
|
||||||
return areStylesEqual ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
return areStylesEqual ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: author display name, %2$s: revision creation date.
|
// translators: 1: author display name. 2: revision creation date.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Changes saved by %1$s on %2$s. This revision matches current editor styles.'), authorDisplayName, formattedModifiedDate) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject.__)('Changes saved by %1$s on %2$s. This revision matches current editor styles.'), authorDisplayName, formattedModifiedDate) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: author display name, %2$s: revision creation date.
|
// translators: 1: author display name. 2: revision creation date.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Changes saved by %1$s on %2$s'), authorDisplayName, formattedModifiedDate);
|
(0,external_wp_i18n_namespaceObject.__)('Changes saved by %1$s on %2$s'), authorDisplayName, formattedModifiedDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23174,7 +23174,7 @@ function Pagination({
|
|||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
|
||||||
variant: "muted",
|
variant: "muted",
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1$s: Current page number, %2$s: Total number of pages.
|
// translators: 1: Current page number. 2: Total number of pages.
|
||||||
(0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
|
(0,external_wp_i18n_namespaceObject._x)('%1$s of %2$s', 'paging'), currentPage, numPages)
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||||
expanded: false,
|
expanded: false,
|
||||||
@ -24148,8 +24148,8 @@ function useEditorTitle() {
|
|||||||
if (hasLoadedPost) {
|
if (hasLoadedPost) {
|
||||||
var _POST_TYPE_LABELS$edi;
|
var _POST_TYPE_LABELS$edi;
|
||||||
title = (0,external_wp_i18n_namespaceObject.sprintf)(
|
title = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
|
// translators: A breadcrumb trail for the Admin document title. 1: title of template being edited, 2: type of template (Template or Template Part).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s ‹ %2$s'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPost.type]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[TEMPLATE_POST_TYPE]);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s ‹ %2$s', 'breadcrumb trail'), getTitle(), (_POST_TYPE_LABELS$edi = POST_TYPE_LABELS[editedPost.type]) !== null && _POST_TYPE_LABELS$edi !== void 0 ? _POST_TYPE_LABELS$edi : POST_TYPE_LABELS[TEMPLATE_POST_TYPE]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only announce the title once the editor is ready to prevent "Replace"
|
// Only announce the title once the editor is ready to prevent "Replace"
|
||||||
@ -24332,7 +24332,7 @@ function EditSiteEditor({
|
|||||||
const newItem = items[0];
|
const newItem = items[0];
|
||||||
const _title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
const _title = typeof newItem.title === 'string' ? newItem.title : newItem.title?.rendered;
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created post e.g: "Post 1".
|
// translators: %s: Title of the created post or template, e.g: "Hello world".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(_title)), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(_title)), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
@ -30812,8 +30812,7 @@ function DataViewsSelectionCheckbox({
|
|||||||
let selectionLabel;
|
let selectionLabel;
|
||||||
if (primaryField?.getValue && item) {
|
if (primaryField?.getValue && item) {
|
||||||
// eslint-disable-next-line @wordpress/valid-sprintf
|
// eslint-disable-next-line @wordpress/valid-sprintf
|
||||||
selectionLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: item title. */
|
selectionLabel = (0,external_wp_i18n_namespaceObject.sprintf)(checked ? /* translators: %s: item title. */(0,external_wp_i18n_namespaceObject.__)('Deselect item: %s') : /* translators: %s: item title. */(0,external_wp_i18n_namespaceObject.__)('Select item: %s'), primaryField.getValue({
|
||||||
checked ? (0,external_wp_i18n_namespaceObject.__)('Deselect item: %s') : (0,external_wp_i18n_namespaceObject.__)('Select item: %s'), primaryField.getValue({
|
|
||||||
item
|
item
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
@ -33061,8 +33060,8 @@ function FieldItem({
|
|||||||
},
|
},
|
||||||
icon: isVisible ? library_seen : library_unseen,
|
icon: isVisible ? library_seen : library_unseen,
|
||||||
label: isVisible ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: field label */
|
label: isVisible ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: field label */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Hide %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: field label */
|
(0,external_wp_i18n_namespaceObject._x)('Hide %s', 'field'), label) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: field label */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Show %s'), label)
|
(0,external_wp_i18n_namespaceObject._x)('Show %s', 'field'), label)
|
||||||
})]
|
})]
|
||||||
})]
|
})]
|
||||||
})
|
})
|
||||||
@ -33762,7 +33761,7 @@ function AddNewPostModal({
|
|||||||
});
|
});
|
||||||
onSave(newPage);
|
onSave(newPage);
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created post e.g: "Hello world".
|
// translators: %s: Title of the created post or template, e.g: "Hello world".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newPage.title?.rendered || title)), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newPage.title?.rendered || title)), {
|
||||||
type: 'snackbar'
|
type: 'snackbar'
|
||||||
});
|
});
|
||||||
@ -34188,7 +34187,7 @@ function usePostFields(viewType) {
|
|||||||
}) => {
|
}) => {
|
||||||
const isDraftOrPrivate = ['draft', 'private'].includes(item.status);
|
const isDraftOrPrivate = ['draft', 'private'].includes(item.status);
|
||||||
if (isDraftOrPrivate) {
|
if (isDraftOrPrivate) {
|
||||||
return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: page creation date */
|
return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: page creation or modification date. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(item.date)), {
|
(0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(item.date)), {
|
||||||
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
|
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
|
||||||
time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
|
time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
|
||||||
@ -34215,7 +34214,7 @@ function usePostFields(viewType) {
|
|||||||
const dateToDisplay = (0,external_wp_date_namespaceObject.getDate)(item.modified) > (0,external_wp_date_namespaceObject.getDate)(item.date) ? item.modified : item.date;
|
const dateToDisplay = (0,external_wp_date_namespaceObject.getDate)(item.modified) > (0,external_wp_date_namespaceObject.getDate)(item.date) ? item.modified : item.date;
|
||||||
const isPending = item.status === 'pending';
|
const isPending = item.status === 'pending';
|
||||||
if (isPending) {
|
if (isPending) {
|
||||||
return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the newest of created or modified date for the page */
|
return (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: page creation or modification date. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(dateToDisplay)), {
|
(0,external_wp_i18n_namespaceObject.__)('<span>Modified: <time>%s</time></span>'), getFormattedDate(dateToDisplay)), {
|
||||||
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
|
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {}),
|
||||||
time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
|
time: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("time", {})
|
||||||
@ -35537,8 +35536,8 @@ function DeleteCategoryMenuItem({
|
|||||||
invalidateResolution('getEntityRecords', ['postType', PATTERN_TYPES.user, {
|
invalidateResolution('getEntityRecords', ['postType', PATTERN_TYPES.user, {
|
||||||
per_page: -1
|
per_page: -1
|
||||||
}]);
|
}]);
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The pattern category's name */
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The pattern category's name */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), category.label), {
|
(0,external_wp_i18n_namespaceObject._x)('"%s" deleted.', 'pattern category'), category.label), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'pattern-category-delete'
|
id: 'pattern-category-delete'
|
||||||
});
|
});
|
||||||
@ -35568,7 +35567,7 @@ function DeleteCategoryMenuItem({
|
|||||||
className: "edit-site-patterns__delete-modal",
|
className: "edit-site-patterns__delete-modal",
|
||||||
title: (0,external_wp_i18n_namespaceObject.sprintf)(
|
title: (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: The pattern category's name.
|
// translators: %s: The pattern category's name.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Delete "%s"?'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(category.label)),
|
(0,external_wp_i18n_namespaceObject._x)('Delete "%s"?', 'pattern category'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(category.label)),
|
||||||
size: "medium",
|
size: "medium",
|
||||||
__experimentalHideHeader: false,
|
__experimentalHideHeader: false,
|
||||||
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
@ -36626,10 +36625,10 @@ const usePostTypeMenuItems = onClickMenuItem => {
|
|||||||
(0,external_wp_i18n_namespaceObject.__)('Single item: %s'), labels.singular_name);
|
(0,external_wp_i18n_namespaceObject.__)('Single item: %s'), labels.singular_name);
|
||||||
if (_needsUniqueIdentifier) {
|
if (_needsUniqueIdentifier) {
|
||||||
menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: Name of the template e.g: "Single Item: Post"; %2s: Slug of the post type e.g: "book".
|
// translators: 1: Name of the template e.g: "Single Item: Post". 2: Slug of the post type e.g: "book".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'post type menu label'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: Name of the post type e.g: "Post"; %2s: Slug of the post type e.g: "book".
|
// translators: 1: Name of the post type e.g: "Post". 2: Slug of the post type e.g: "book".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Single item: %1$s (%2$s)'), labels.singular_name, slug);
|
(0,external_wp_i18n_namespaceObject._x)('Single item: %1$s (%2$s)', 'post type menu label'), labels.singular_name, slug);
|
||||||
}
|
}
|
||||||
const menuItem = defaultTemplateType ? {
|
const menuItem = defaultTemplateType ? {
|
||||||
...defaultTemplateType,
|
...defaultTemplateType,
|
||||||
@ -36759,10 +36758,10 @@ const useTaxonomiesMenuItems = onClickMenuItem => {
|
|||||||
let menuItemTitle = labels.template_name || labels.singular_name;
|
let menuItemTitle = labels.template_name || labels.singular_name;
|
||||||
if (_needsUniqueIdentifier) {
|
if (_needsUniqueIdentifier) {
|
||||||
menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
menuItemTitle = labels.template_name ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: Name of the template e.g: "Products by Category"; %2s: Slug of the taxonomy e.g: "product_cat".
|
// translators: 1: Name of the template e.g: "Products by Category". 2s: Slug of the taxonomy e.g: "product_cat".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'taxonomy template menu label'), labels.template_name, slug) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: Name of the taxonomy e.g: "Category"; %2s: Slug of the taxonomy e.g: "product_cat".
|
// translators: 1: Name of the taxonomy e.g: "Category". 2: Slug of the taxonomy e.g: "product_cat".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), labels.singular_name, slug);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'taxonomy menu label'), labels.singular_name, slug);
|
||||||
}
|
}
|
||||||
const menuItem = defaultTemplateType ? {
|
const menuItem = defaultTemplateType ? {
|
||||||
...defaultTemplateType,
|
...defaultTemplateType,
|
||||||
@ -37928,7 +37927,7 @@ function NewTemplateModal({
|
|||||||
canvas: 'edit'
|
canvas: 'edit'
|
||||||
});
|
});
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created template e.g: "Category".
|
// translators: %s: Title of the created post or template, e.g: "Hello world".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newTemplate.title?.rendered || title)), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newTemplate.title?.rendered || title)), {
|
||||||
type: 'snackbar'
|
type: 'snackbar'
|
||||||
});
|
});
|
||||||
@ -38550,7 +38549,8 @@ function SidebarNavigationScreen({
|
|||||||
color: '#e0e0e0' /* $gray-200 */,
|
color: '#e0e0e0' /* $gray-200 */,
|
||||||
level: 1,
|
level: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
children: !isPreviewingTheme() ? title : (0,external_wp_i18n_namespaceObject.sprintf)('Previewing %1$s: %2$s', previewingThemeName, title)
|
children: !isPreviewingTheme() ? title : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: theme name. 2: title */
|
||||||
|
(0,external_wp_i18n_namespaceObject.__)('Previewing %1$s: %2$s'), previewingThemeName, title)
|
||||||
}), actions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
}), actions && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||||
className: "edit-site-sidebar-navigation-screen__actions",
|
className: "edit-site-sidebar-navigation-screen__actions",
|
||||||
children: actions
|
children: actions
|
||||||
@ -39570,15 +39570,15 @@ function NavigationMenuEditor({
|
|||||||
// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
|
// Copied from packages/block-library/src/navigation/edit/navigation-menu-selector.js.
|
||||||
function buildNavigationLabel(title, id, status) {
|
function buildNavigationLabel(title, id, status) {
|
||||||
if (!title?.rendered) {
|
if (!title?.rendered) {
|
||||||
/* translators: %s is the index of the menu in the list of menus. */
|
/* translators: %s: the index of the menu in the list of menus. */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
||||||
}
|
}
|
||||||
if (status === 'publish') {
|
if (status === 'publish') {
|
||||||
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered);
|
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered);
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
|
// translators: 1: title of the menu. 2: status of the menu (draft, pending, etc.).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered), status);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'menu label'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title?.rendered), status);
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js
|
||||||
@ -39836,7 +39836,7 @@ function useDuplicateNavigationMenu() {
|
|||||||
try {
|
try {
|
||||||
const savedRecord = await saveEntityRecord('postType', postType, {
|
const savedRecord = await saveEntityRecord('postType', postType, {
|
||||||
title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Navigation menu title */
|
title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Navigation menu title */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), menuTitle),
|
(0,external_wp_i18n_namespaceObject._x)('%s (Copy)', 'navigation menu'), menuTitle),
|
||||||
content: navigationMenu?.content?.raw,
|
content: navigationMenu?.content?.raw,
|
||||||
status: 'publish'
|
status: 'publish'
|
||||||
}, {
|
}, {
|
||||||
@ -39895,15 +39895,15 @@ function useNavigationMenuHandlers() {
|
|||||||
|
|
||||||
function buildMenuLabel(title, id, status) {
|
function buildMenuLabel(title, id, status) {
|
||||||
if (!title) {
|
if (!title) {
|
||||||
/* translators: %s is the index of the menu in the list of menus. */
|
/* translators: %s: the index of the menu in the list of menus. */
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('(no title %s)'), id);
|
||||||
}
|
}
|
||||||
if (status === 'publish') {
|
if (status === 'publish') {
|
||||||
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
|
return (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title);
|
||||||
}
|
}
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
return (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %1s: title of the menu; %2s: status of the menu (draft, pending, etc.).
|
// translators: 1: title of the menu. 2: status of the menu (draft, pending, etc.).
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s)'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
|
(0,external_wp_i18n_namespaceObject._x)('%1$s (%2$s)', 'menu label'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title), status);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save a boolean to prevent us creating a fallback more than once per session.
|
// Save a boolean to prevent us creating a fallback more than once per session.
|
||||||
@ -40908,7 +40908,7 @@ function FormField({
|
|||||||
"aria-expanded": isOpen,
|
"aria-expanded": isOpen,
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Field name.
|
// translators: %s: Field name.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Edit %s'), field.label),
|
(0,external_wp_i18n_namespaceObject._x)('Edit %s', 'field'), field.label),
|
||||||
onClick: onToggle,
|
onClick: onToggle,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
||||||
item: data
|
item: data
|
||||||
|
2
wp-includes/js/dist/edit-site.min.js
vendored
2
wp-includes/js/dist/edit-site.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/edit-widgets.js
vendored
2
wp-includes/js/dist/edit-widgets.js
vendored
@ -1466,7 +1466,7 @@ function InterfaceSkeleton({
|
|||||||
/* translators: accessibility text for the secondary sidebar landmark region. */
|
/* translators: accessibility text for the secondary sidebar landmark region. */
|
||||||
secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
|
secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
|
||||||
/* translators: accessibility text for the settings landmark region. */
|
/* translators: accessibility text for the settings landmark region. */
|
||||||
sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
|
sidebar: (0,external_wp_i18n_namespaceObject._x)('Settings', 'settings landmark area'),
|
||||||
/* translators: accessibility text for the publish landmark region. */
|
/* translators: accessibility text for the publish landmark region. */
|
||||||
actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
||||||
/* translators: accessibility text for the footer landmark region. */
|
/* translators: accessibility text for the footer landmark region. */
|
||||||
|
2
wp-includes/js/dist/edit-widgets.min.js
vendored
2
wp-includes/js/dist/edit-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
130
wp-includes/js/dist/editor.js
vendored
130
wp-includes/js/dist/editor.js
vendored
@ -6051,7 +6051,7 @@ const duplicateTemplatePart = {
|
|||||||
function onTemplatePartSuccess() {
|
function onTemplatePartSuccess() {
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: The new template part's title e.g. 'Call to action (copy)'.
|
// translators: %s: The new template part's title e.g. 'Call to action (copy)'.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" duplicated.'), getItemTitle(item)), {
|
(0,external_wp_i18n_namespaceObject._x)('"%s" duplicated.', 'template part'), getItemTitle(item)), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'edit-site-patterns-success'
|
id: 'edit-site-patterns-success'
|
||||||
});
|
});
|
||||||
@ -6061,7 +6061,7 @@ const duplicateTemplatePart = {
|
|||||||
blocks: blocks,
|
blocks: blocks,
|
||||||
defaultArea: item.area,
|
defaultArea: item.area,
|
||||||
defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template part title */
|
defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template part title */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), getItemTitle(item)),
|
(0,external_wp_i18n_namespaceObject._x)('%s (Copy)', 'template part'), getItemTitle(item)),
|
||||||
onCreate: onTemplatePartSuccess,
|
onCreate: onTemplatePartSuccess,
|
||||||
onError: closeModal,
|
onError: closeModal,
|
||||||
confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
|
confirmLabel: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
|
||||||
@ -6649,7 +6649,7 @@ const viewPostRevisions = {
|
|||||||
label(items) {
|
label(items) {
|
||||||
var _items$0$_links$versi;
|
var _items$0$_links$versi;
|
||||||
const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
|
const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
|
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('View revisions (%s)'), revisionsCount);
|
(0,external_wp_i18n_namespaceObject.__)('View revisions (%s)'), revisionsCount);
|
||||||
},
|
},
|
||||||
isEligible(post) {
|
isEligible(post) {
|
||||||
@ -7312,7 +7312,7 @@ function FormField({
|
|||||||
"aria-expanded": isOpen,
|
"aria-expanded": isOpen,
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Field name.
|
// translators: %s: Field name.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Edit %s'), field.label),
|
(0,external_wp_i18n_namespaceObject._x)('Edit %s', 'field'), field.label),
|
||||||
onClick: onToggle,
|
onClick: onToggle,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
||||||
item: data
|
item: data
|
||||||
@ -7813,8 +7813,8 @@ const deletePostAction = {
|
|||||||
children: items.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
children: items.length > 1 ? (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %d: number of items to delete.
|
// translators: %d: number of items to delete.
|
||||||
(0,external_wp_i18n_namespaceObject._n)('Delete %d item?', 'Delete %d items?', items.length), items.length) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
(0,external_wp_i18n_namespaceObject._n)('Delete %d item?', 'Delete %d items?', items.length), items.length) : (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: The template or template part's titles
|
// translators: %s: The template or template part's title
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Delete "%s"?'), getItemTitle(items[0]))
|
(0,external_wp_i18n_namespaceObject._x)('Delete "%s"?', 'template part'), getItemTitle(items[0]))
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
|
||||||
justify: "right",
|
justify: "right",
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
|
||||||
@ -8200,8 +8200,8 @@ const removeTemplates = items => async ({
|
|||||||
title = items[0].title?.raw;
|
title = items[0].title?.raw;
|
||||||
}
|
}
|
||||||
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
|
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" reset.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
|
(0,external_wp_i18n_namespaceObject.__)('"%s" reset.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The template/part's name. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
(0,external_wp_i18n_namespaceObject._x)('"%s" deleted.', 'template part'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
|
||||||
} else {
|
} else {
|
||||||
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('Items reset.') : (0,external_wp_i18n_namespaceObject.__)('Items deleted.');
|
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('Items reset.') : (0,external_wp_i18n_namespaceObject.__)('Items deleted.');
|
||||||
}
|
}
|
||||||
@ -9983,7 +9983,7 @@ function InterfaceSkeleton({
|
|||||||
/* translators: accessibility text for the secondary sidebar landmark region. */
|
/* translators: accessibility text for the secondary sidebar landmark region. */
|
||||||
secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
|
secondarySidebar: (0,external_wp_i18n_namespaceObject.__)('Block Library'),
|
||||||
/* translators: accessibility text for the settings landmark region. */
|
/* translators: accessibility text for the settings landmark region. */
|
||||||
sidebar: (0,external_wp_i18n_namespaceObject.__)('Settings'),
|
sidebar: (0,external_wp_i18n_namespaceObject._x)('Settings', 'settings landmark area'),
|
||||||
/* translators: accessibility text for the publish landmark region. */
|
/* translators: accessibility text for the publish landmark region. */
|
||||||
actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
actions: (0,external_wp_i18n_namespaceObject.__)('Publish'),
|
||||||
/* translators: accessibility text for the footer landmark region. */
|
/* translators: accessibility text for the footer landmark region. */
|
||||||
@ -12384,10 +12384,10 @@ function PostParentToggle({
|
|||||||
size: "compact",
|
size: "compact",
|
||||||
className: "editor-post-parent__panel-toggle",
|
className: "editor-post-parent__panel-toggle",
|
||||||
variant: "tertiary",
|
variant: "tertiary",
|
||||||
"aria-expanded": isOpen
|
"aria-expanded": isOpen,
|
||||||
|
"aria-label":
|
||||||
// translators: %s: Current post parent.
|
// translators: %s: Current post parent.
|
||||||
,
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change parent: %s'), parentTitle),
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change parent: %s'), parentTitle),
|
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
children: parentTitle
|
children: parentTitle
|
||||||
});
|
});
|
||||||
@ -12432,8 +12432,8 @@ function ParentRow() {
|
|||||||
title: (0,external_wp_i18n_namespaceObject.__)('Parent'),
|
title: (0,external_wp_i18n_namespaceObject.__)('Parent'),
|
||||||
onClose: onClose
|
onClose: onClose
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
|
||||||
children: [(0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1$s The home URL of the WordPress installation without the scheme. */
|
children: [(0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: The home URL of the WordPress installation without the scheme. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %1$s<wbr />/services<wbr />/pricing.'), (0,external_wp_url_namespaceObject.filterURLForDisplay)(homeUrl).replace(/([/.])/g, '<wbr />$1')), {
|
(0,external_wp_i18n_namespaceObject.__)('Child pages inherit characteristics from their parent, such as URL structure. For instance, if "Pricing" is a child of "Services", its URL would be %s<wbr />/services<wbr />/pricing.'), (0,external_wp_url_namespaceObject.filterURLForDisplay)(homeUrl).replace(/([/.])/g, '<wbr />$1')), {
|
||||||
wbr: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("wbr", {})
|
wbr: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("wbr", {})
|
||||||
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
|
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
|
||||||
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('They also show up as sub-items in the default navigation menu. <a>Learn more.</a>'), {
|
children: (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('They also show up as sub-items in the default navigation menu. <a>Learn more.</a>'), {
|
||||||
@ -14395,10 +14395,10 @@ function PostAuthorToggle({
|
|||||||
size: "compact",
|
size: "compact",
|
||||||
className: "editor-post-author__panel-toggle",
|
className: "editor-post-author__panel-toggle",
|
||||||
variant: "tertiary",
|
variant: "tertiary",
|
||||||
"aria-expanded": isOpen
|
"aria-expanded": isOpen,
|
||||||
// translators: %s: Current post link.
|
"aria-label":
|
||||||
,
|
// translators: %s: Author name.
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change author: %s'), authorName),
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change author: %s'), authorName),
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
children: authorName
|
children: authorName
|
||||||
});
|
});
|
||||||
@ -15707,7 +15707,7 @@ function PostLastRevision() {
|
|||||||
className: "editor-post-last-revision__title",
|
className: "editor-post-last-revision__title",
|
||||||
icon: library_backup,
|
icon: library_backup,
|
||||||
iconPosition: "right",
|
iconPosition: "right",
|
||||||
text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
|
text: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount)
|
(0,external_wp_i18n_namespaceObject.__)('Revisions (%s)'), revisionsCount)
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
@ -17569,7 +17569,7 @@ function getFullPostScheduleLabel(dateAttribute) {
|
|||||||
const date = (0,external_wp_date_namespaceObject.getDate)(dateAttribute);
|
const date = (0,external_wp_date_namespaceObject.getDate)(dateAttribute);
|
||||||
const timezoneAbbreviation = getTimezoneAbbreviation();
|
const timezoneAbbreviation = getTimezoneAbbreviation();
|
||||||
const formattedDate = (0,external_wp_date_namespaceObject.dateI18n)(
|
const formattedDate = (0,external_wp_date_namespaceObject.dateI18n)(
|
||||||
// translators: If using a space between 'g:i' and 'a', use a non-breaking space.
|
// translators: Use a non-breaking space between 'g:i' and 'a' if appropriate.
|
||||||
(0,external_wp_i18n_namespaceObject._x)('F j, Y g:i\xa0a', 'post schedule full date format'), date);
|
(0,external_wp_i18n_namespaceObject._x)('F j, Y g:i\xa0a', 'post schedule full date format'), date);
|
||||||
return (0,external_wp_i18n_namespaceObject.isRTL)() ? `${timezoneAbbreviation} ${formattedDate}` : `${formattedDate} ${timezoneAbbreviation}`;
|
return (0,external_wp_i18n_namespaceObject.isRTL)() ? `${timezoneAbbreviation} ${formattedDate}` : `${formattedDate} ${timezoneAbbreviation}`;
|
||||||
}
|
}
|
||||||
@ -17725,7 +17725,6 @@ function MostUsedTerms({
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const flat_term_selector_EMPTY_ARRAY = [];
|
const flat_term_selector_EMPTY_ARRAY = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -17744,6 +17743,15 @@ const isSameTermName = (termA, termB) => unescapeString(termA).toLowerCase() ===
|
|||||||
const termNamesToIds = (names, terms) => {
|
const termNamesToIds = (names, terms) => {
|
||||||
return names.map(termName => terms.find(term => isSameTermName(term.name, termName))?.id).filter(id => id !== undefined);
|
return names.map(termName => terms.find(term => isSameTermName(term.name, termName))?.id).filter(id => id !== undefined);
|
||||||
};
|
};
|
||||||
|
const Wrapper = ({
|
||||||
|
children,
|
||||||
|
__nextHasNoMarginBottom
|
||||||
|
}) => __nextHasNoMarginBottom ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalVStack, {
|
||||||
|
spacing: 4,
|
||||||
|
children: children
|
||||||
|
}) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, {
|
||||||
|
children: children
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a flat term selector component.
|
* Renders a flat term selector component.
|
||||||
@ -17917,7 +17925,8 @@ function FlatTermSelector({
|
|||||||
(0,external_wp_i18n_namespaceObject._x)('%s removed', 'term'), singularName);
|
(0,external_wp_i18n_namespaceObject._x)('%s removed', 'term'), singularName);
|
||||||
const removeTermLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: term name. */
|
const removeTermLabel = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: term name. */
|
||||||
(0,external_wp_i18n_namespaceObject._x)('Remove %s', 'term'), singularName);
|
(0,external_wp_i18n_namespaceObject._x)('Remove %s', 'term'), singularName);
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
|
||||||
|
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
|
||||||
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
|
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FormTokenField, {
|
||||||
__next40pxDefaultSize: true,
|
__next40pxDefaultSize: true,
|
||||||
value: values,
|
value: values,
|
||||||
@ -18355,7 +18364,7 @@ function HierarchicalTermSelector({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const defaultName = slug === 'category' ? (0,external_wp_i18n_namespaceObject.__)('Category') : (0,external_wp_i18n_namespaceObject.__)('Term');
|
const defaultName = slug === 'category' ? (0,external_wp_i18n_namespaceObject.__)('Category') : (0,external_wp_i18n_namespaceObject.__)('Term');
|
||||||
const termAddedMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: taxonomy name */
|
const termAddedMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: term name. */
|
||||||
(0,external_wp_i18n_namespaceObject._x)('%s added', 'term'), (_taxonomy$labels$sing = taxonomy?.labels?.singular_name) !== null && _taxonomy$labels$sing !== void 0 ? _taxonomy$labels$sing : defaultName);
|
(0,external_wp_i18n_namespaceObject._x)('%s added', 'term'), (_taxonomy$labels$sing = taxonomy?.labels?.singular_name) !== null && _taxonomy$labels$sing !== void 0 ? _taxonomy$labels$sing : defaultName);
|
||||||
(0,external_wp_a11y_namespaceObject.speak)(termAddedMessage, 'assertive');
|
(0,external_wp_a11y_namespaceObject.speak)(termAddedMessage, 'assertive');
|
||||||
setAdding(false);
|
setAdding(false);
|
||||||
@ -18378,7 +18387,7 @@ function HierarchicalTermSelector({
|
|||||||
setFilterValue(value);
|
setFilterValue(value);
|
||||||
setFilteredTermsTree(newFilteredTermsTree);
|
setFilteredTermsTree(newFilteredTermsTree);
|
||||||
const resultCount = getResultCount(newFilteredTermsTree);
|
const resultCount = getResultCount(newFilteredTermsTree);
|
||||||
const resultsFoundMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results */
|
const resultsFoundMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
|
||||||
(0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', resultCount), resultCount);
|
(0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', resultCount), resultCount);
|
||||||
debouncedSpeak(resultsFoundMessage, 'assertive');
|
debouncedSpeak(resultsFoundMessage, 'assertive');
|
||||||
};
|
};
|
||||||
@ -21553,10 +21562,10 @@ function PostURLToggle({
|
|||||||
size: "compact",
|
size: "compact",
|
||||||
className: "editor-post-url__panel-toggle",
|
className: "editor-post-url__panel-toggle",
|
||||||
variant: "tertiary",
|
variant: "tertiary",
|
||||||
"aria-expanded": isOpen
|
"aria-expanded": isOpen,
|
||||||
|
"aria-label":
|
||||||
// translators: %s: Current post link.
|
// translators: %s: Current post link.
|
||||||
,
|
(0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change link: %s'), decodedSlug),
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Change link: %s'), decodedSlug),
|
|
||||||
onClick: onClick,
|
onClick: onClick,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalTruncate, {
|
||||||
numberOfLines: 1,
|
numberOfLines: 1,
|
||||||
@ -21689,8 +21698,8 @@ function TimeToRead() {
|
|||||||
const minutesToRead = Math.round((0,external_wp_wordcount_namespaceObject.count)(content, wordCountType) / AVERAGE_READING_RATE);
|
const minutesToRead = Math.round((0,external_wp_wordcount_namespaceObject.count)(content, wordCountType) / AVERAGE_READING_RATE);
|
||||||
const minutesToReadString = minutesToRead === 0 ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('<span>< 1</span> minute'), {
|
const minutesToReadString = minutesToRead === 0 ? (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.__)('<span>< 1</span> minute'), {
|
||||||
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
|
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
|
||||||
}) : (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s is the number of minutes the post will take to read. */
|
}) : (0,external_wp_element_namespaceObject.createInterpolateElement)((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the number of minutes to read the post. */
|
||||||
(0,external_wp_i18n_namespaceObject._n)('<span>%d</span> minute', '<span>%d</span> minutes', minutesToRead), minutesToRead), {
|
(0,external_wp_i18n_namespaceObject._n)('<span>%s</span> minute', '<span>%s</span> minutes', minutesToRead), minutesToRead), {
|
||||||
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
|
span: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {})
|
||||||
});
|
});
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
|
||||||
@ -27651,8 +27660,9 @@ function EditorInterface({
|
|||||||
isDistractionFree: get('core', 'distractionFree'),
|
isDistractionFree: get('core', 'distractionFree'),
|
||||||
isPreviewMode: editorSettings.__unstableIsPreviewMode,
|
isPreviewMode: editorSettings.__unstableIsPreviewMode,
|
||||||
showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
|
showBlockBreadcrumbs: get('core', 'showBlockBreadcrumbs'),
|
||||||
|
documentLabel:
|
||||||
// translators: Default label for the Document in the Block Breadcrumb.
|
// translators: Default label for the Document in the Block Breadcrumb.
|
||||||
documentLabel: postTypeLabel || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun'),
|
postTypeLabel || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun, breadcrumb'),
|
||||||
isZoomOut: _isZoomOut()
|
isZoomOut: _isZoomOut()
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
@ -28173,8 +28183,7 @@ function PostContentInformation() {
|
|||||||
const wordsCountText = (0,external_wp_i18n_namespaceObject.sprintf)(
|
const wordsCountText = (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: the number of words in the post.
|
// translators: %s: the number of words in the post.
|
||||||
(0,external_wp_i18n_namespaceObject._n)('%s word', '%s words', wordsCounted), wordsCounted.toLocaleString());
|
(0,external_wp_i18n_namespaceObject._n)('%s word', '%s words', wordsCounted), wordsCounted.toLocaleString());
|
||||||
const minutesText = readingTime <= 1 ? (0,external_wp_i18n_namespaceObject.__)('1 minute') : (0,external_wp_i18n_namespaceObject.sprintf)(
|
const minutesText = readingTime <= 1 ? (0,external_wp_i18n_namespaceObject.__)('1 minute') : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: the number of minutes to read the post. */
|
||||||
// translators: %s: the number of minutes to read the post.
|
|
||||||
(0,external_wp_i18n_namespaceObject._n)('%s minute', '%s minutes', readingTime), readingTime.toLocaleString());
|
(0,external_wp_i18n_namespaceObject._n)('%s minute', '%s minutes', readingTime), readingTime.toLocaleString());
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
|
||||||
className: "editor-post-content-information",
|
className: "editor-post-content-information",
|
||||||
@ -28969,8 +28978,9 @@ const SidebarHeader = (_, ref) => {
|
|||||||
getPostTypeLabel
|
getPostTypeLabel
|
||||||
} = select(store_store);
|
} = select(store_store);
|
||||||
return {
|
return {
|
||||||
|
documentLabel:
|
||||||
// translators: Default label for the Document sidebar tab, not selected.
|
// translators: Default label for the Document sidebar tab, not selected.
|
||||||
documentLabel: getPostTypeLabel() || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun')
|
getPostTypeLabel() || (0,external_wp_i18n_namespaceObject._x)('Document', 'noun, sidebar')
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, {
|
||||||
@ -29247,9 +29257,9 @@ const SidebarContent = ({
|
|||||||
// see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
|
// see https://github.com/WordPress/gutenberg/pull/55360#pullrequestreview-1737671049
|
||||||
,
|
,
|
||||||
className: "editor-sidebar__panel",
|
className: "editor-sidebar__panel",
|
||||||
headerClassName: "editor-sidebar__panel-tabs"
|
headerClassName: "editor-sidebar__panel-tabs",
|
||||||
/* translators: button label text should, if possible, be under 16 characters. */,
|
title: /* translators: button label text should, if possible, be under 16 characters. */
|
||||||
title: (0,external_wp_i18n_namespaceObject.__)('Settings'),
|
(0,external_wp_i18n_namespaceObject._x)('Settings', 'sidebar button label'),
|
||||||
toggleShortcut: keyboardShortcut,
|
toggleShortcut: keyboardShortcut,
|
||||||
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
|
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left : drawer_right,
|
||||||
isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT,
|
isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT,
|
||||||
@ -29694,30 +29704,40 @@ const {
|
|||||||
function EditorPreferencesModal({
|
function EditorPreferencesModal({
|
||||||
extraSections = {}
|
extraSections = {}
|
||||||
}) {
|
}) {
|
||||||
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
|
const isActive = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
|
return select(store).isModalActive('editor/preferences');
|
||||||
|
}, []);
|
||||||
const {
|
const {
|
||||||
isActive,
|
closeModal
|
||||||
showBlockBreadcrumbsOption
|
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
||||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
if (!isActive) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Please wrap all contents inside PreferencesModalContents to prevent all
|
||||||
|
// hooks from executing when the modal is not open.
|
||||||
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModal, {
|
||||||
|
closeModal: closeModal,
|
||||||
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalContents, {
|
||||||
|
extraSections: extraSections
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function PreferencesModalContents({
|
||||||
|
extraSections = {}
|
||||||
|
}) {
|
||||||
|
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
|
||||||
|
const showBlockBreadcrumbsOption = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||||
const {
|
const {
|
||||||
getEditorSettings
|
getEditorSettings
|
||||||
} = select(store_store);
|
} = select(store_store);
|
||||||
const {
|
const {
|
||||||
get
|
get
|
||||||
} = select(external_wp_preferences_namespaceObject.store);
|
} = select(external_wp_preferences_namespaceObject.store);
|
||||||
const {
|
|
||||||
isModalActive
|
|
||||||
} = select(store);
|
|
||||||
const isRichEditingEnabled = getEditorSettings().richEditingEnabled;
|
const isRichEditingEnabled = getEditorSettings().richEditingEnabled;
|
||||||
const isDistractionFreeEnabled = get('core', 'distractionFree');
|
const isDistractionFreeEnabled = get('core', 'distractionFree');
|
||||||
return {
|
return !isDistractionFreeEnabled && isLargeViewport && isRichEditingEnabled;
|
||||||
showBlockBreadcrumbsOption: !isDistractionFreeEnabled && isLargeViewport && isRichEditingEnabled,
|
|
||||||
isActive: isModalActive('editor/preferences')
|
|
||||||
};
|
|
||||||
}, [isLargeViewport]);
|
}, [isLargeViewport]);
|
||||||
const {
|
|
||||||
closeModal
|
|
||||||
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
|
|
||||||
const {
|
const {
|
||||||
setIsListViewOpened,
|
setIsListViewOpened,
|
||||||
setIsInserterOpened
|
setIsInserterOpened
|
||||||
@ -29882,14 +29902,8 @@ function EditorPreferencesModal({
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}].filter(Boolean), [showBlockBreadcrumbsOption, extraSections, setIsInserterOpened, setIsListViewOpened, setPreference, isLargeViewport, hasStarterPatterns]);
|
}].filter(Boolean), [showBlockBreadcrumbsOption, extraSections, setIsInserterOpened, setIsListViewOpened, setPreference, isLargeViewport, hasStarterPatterns]);
|
||||||
if (!isActive) {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalTabs, {
|
||||||
return null;
|
sections: sections
|
||||||
}
|
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModal, {
|
|
||||||
closeModal: closeModal,
|
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PreferencesModalTabs, {
|
|
||||||
sections: sections
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
wp-includes/js/dist/editor.min.js
vendored
4
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
8
wp-includes/js/dist/fields.js
vendored
8
wp-includes/js/dist/fields.js
vendored
@ -803,7 +803,7 @@ function FormField({
|
|||||||
"aria-expanded": isOpen,
|
"aria-expanded": isOpen,
|
||||||
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Field name.
|
// translators: %s: Field name.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('Edit %s'), field.label),
|
(0,external_wp_i18n_namespaceObject._x)('Edit %s', 'field'), field.label),
|
||||||
onClick: onToggle,
|
onClick: onToggle,
|
||||||
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(field.render, {
|
||||||
item: data
|
item: data
|
||||||
@ -1044,7 +1044,7 @@ const duplicatePost = {
|
|||||||
const [item, setItem] = (0,external_wp_element_namespaceObject.useState)({
|
const [item, setItem] = (0,external_wp_element_namespaceObject.useState)({
|
||||||
...items[0],
|
...items[0],
|
||||||
title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template title */
|
title: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing template title */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), getItemTitle(items[0]))
|
(0,external_wp_i18n_namespaceObject._x)('%s (Copy)', 'template'), getItemTitle(items[0]))
|
||||||
});
|
});
|
||||||
const [isCreatingPage, setIsCreatingPage] = (0,external_wp_element_namespaceObject.useState)(false);
|
const [isCreatingPage, setIsCreatingPage] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||||
const {
|
const {
|
||||||
@ -1091,7 +1091,7 @@ const duplicatePost = {
|
|||||||
throwOnError: true
|
throwOnError: true
|
||||||
});
|
});
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: Title of the created template e.g: "Category".
|
// translators: %s: Title of the created post or template, e.g: "Hello world".
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newItem.title?.rendered || item.title)), {
|
(0,external_wp_i18n_namespaceObject.__)('"%s" successfully created.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(newItem.title?.rendered || item.title)), {
|
||||||
id: 'duplicate-post-action',
|
id: 'duplicate-post-action',
|
||||||
type: 'snackbar'
|
type: 'snackbar'
|
||||||
@ -1175,7 +1175,7 @@ const viewPostRevisions = {
|
|||||||
label(items) {
|
label(items) {
|
||||||
var _items$0$_links$versi;
|
var _items$0$_links$versi;
|
||||||
const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
|
const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
|
||||||
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions */
|
return (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: number of revisions. */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('View revisions (%s)'), revisionsCount);
|
(0,external_wp_i18n_namespaceObject.__)('View revisions (%s)'), revisionsCount);
|
||||||
},
|
},
|
||||||
isEligible(post) {
|
isEligible(post) {
|
||||||
|
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
6
wp-includes/js/dist/patterns.js
vendored
6
wp-includes/js/dist/patterns.js
vendored
@ -713,13 +713,13 @@ function useDuplicatePatternProps({
|
|||||||
defaultSyncType: pattern.type !== PATTERN_TYPES.user // Theme patterns are unsynced by default.
|
defaultSyncType: pattern.type !== PATTERN_TYPES.user // Theme patterns are unsynced by default.
|
||||||
? PATTERN_SYNC_TYPES.unsynced : pattern.wp_pattern_sync_status || PATTERN_SYNC_TYPES.full,
|
? PATTERN_SYNC_TYPES.unsynced : pattern.wp_pattern_sync_status || PATTERN_SYNC_TYPES.full,
|
||||||
defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing pattern title */
|
defaultTitle: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: Existing pattern title */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('%s (Copy)'), typeof pattern.title === 'string' ? pattern.title : pattern.title.raw),
|
(0,external_wp_i18n_namespaceObject._x)('%s (Copy)', 'pattern'), typeof pattern.title === 'string' ? pattern.title : pattern.title.raw),
|
||||||
onSuccess: ({
|
onSuccess: ({
|
||||||
pattern: newPattern
|
pattern: newPattern
|
||||||
}) => {
|
}) => {
|
||||||
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
createSuccessNotice((0,external_wp_i18n_namespaceObject.sprintf)(
|
||||||
// translators: %s: The new pattern's title e.g. 'Call to action (copy)'.
|
// translators: %s: The new pattern's title e.g. 'Call to action (copy)'.
|
||||||
(0,external_wp_i18n_namespaceObject.__)('"%s" duplicated.'), newPattern.title.raw), {
|
(0,external_wp_i18n_namespaceObject._x)('"%s" duplicated.', 'pattern'), newPattern.title.raw), {
|
||||||
type: 'snackbar',
|
type: 'snackbar',
|
||||||
id: 'patterns-create'
|
id: 'patterns-create'
|
||||||
});
|
});
|
||||||
@ -1633,7 +1633,7 @@ function PatternOverridesToolbarIndicator({
|
|||||||
clientId: clientIds[0],
|
clientId: clientIds[0],
|
||||||
maximumLength: 35
|
maximumLength: 35
|
||||||
});
|
});
|
||||||
const blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %1s: The block type's name; %2s: The block's user-provided name (the same as the override name). */
|
const blockDescription = isSingleBlockSelected ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: The block type's name. 2: The block's user-provided name (the same as the override name). */
|
||||||
(0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
|
(0,external_wp_i18n_namespaceObject.__)('This %1$s is editable using the "%2$s" override.'), firstBlockTitle.toLowerCase(), firstBlockName) : (0,external_wp_i18n_namespaceObject.__)('These blocks are editable using overrides.');
|
||||||
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
|
const descriptionId = (0,external_wp_element_namespaceObject.useId)();
|
||||||
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
|
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, {
|
||||||
|
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
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59329';
|
$wp_version = '6.8-alpha-59330';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user