Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,374 changes: 1,457 additions & 917 deletions package-lock.json

Large diffs are not rendered by default.

156 changes: 79 additions & 77 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"@lodder/grunt-postcss": "^3.1.1",
"@playwright/test": "1.56.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
"@wordpress/babel-preset-default": "8.33.1",
"@wordpress/dependency-extraction-webpack-plugin": "6.33.1",
"@wordpress/e2e-test-utils-playwright": "1.33.2",
"@wordpress/prettier-config": "4.33.1",
"@wordpress/scripts": "30.26.2",
"@wordpress/babel-preset-default": "8.35.0",
"@wordpress/dependency-extraction-webpack-plugin": "6.35.0",
"@wordpress/e2e-test-utils-playwright": "1.35.0",
"@wordpress/prettier-config": "4.35.0",
"@wordpress/scripts": "31.0.0",
"autoprefixer": "10.4.22",
"chalk": "5.6.2",
"check-node-version": "4.2.1",
Expand Down Expand Up @@ -75,78 +75,80 @@
"webpack-livereload-plugin": "3.0.2"
},
"dependencies": {
"@wordpress/a11y": "4.33.1",
"@wordpress/admin-ui": "1.1.4",
"@wordpress/annotations": "3.33.2",
"@wordpress/api-fetch": "7.33.1",
"@wordpress/autop": "4.33.1",
"@wordpress/base-styles": "6.9.1",
"@wordpress/blob": "4.33.1",
"@wordpress/block-directory": "5.33.9",
"@wordpress/block-editor": "15.6.7",
"@wordpress/block-library": "9.33.8",
"@wordpress/block-serialization-default-parser": "5.33.1",
"@wordpress/blocks": "15.6.2",
"@wordpress/commands": "1.33.4",
"@wordpress/components": "30.6.4",
"@wordpress/compose": "7.33.1",
"@wordpress/core-commands": "1.33.7",
"@wordpress/core-data": "7.33.7",
"@wordpress/customize-widgets": "5.33.8",
"@wordpress/data": "10.33.1",
"@wordpress/data-controls": "4.33.1",
"@wordpress/dataviews": "10.1.6",
"@wordpress/date": "5.33.1",
"@wordpress/deprecated": "4.33.1",
"@wordpress/dom": "4.33.1",
"@wordpress/dom-ready": "4.33.1",
"@wordpress/edit-post": "8.33.9",
"@wordpress/edit-site": "6.33.9",
"@wordpress/edit-widgets": "6.33.8",
"@wordpress/editor": "14.33.9",
"@wordpress/element": "6.33.1",
"@wordpress/escape-html": "3.33.1",
"@wordpress/fields": "0.25.9",
"@wordpress/format-library": "5.33.7",
"@wordpress/hooks": "4.33.1",
"@wordpress/html-entities": "4.33.1",
"@wordpress/i18n": "6.6.1",
"@wordpress/icons": "11.0.1",
"@wordpress/interactivity": "6.33.1",
"@wordpress/interactivity-router": "2.33.1",
"@wordpress/interface": "9.18.4",
"@wordpress/is-shallow-equal": "5.33.1",
"@wordpress/keyboard-shortcuts": "5.33.1",
"@wordpress/keycodes": "4.33.1",
"@wordpress/latex-to-mathml": "1.1.2",
"@wordpress/list-reusable-blocks": "5.33.4",
"@wordpress/media-utils": "5.33.1",
"@wordpress/notices": "5.33.1",
"@wordpress/nux": "9.33.4",
"@wordpress/patterns": "2.33.7",
"@wordpress/plugins": "7.33.4",
"@wordpress/preferences": "4.33.4",
"@wordpress/preferences-persistence": "2.33.1",
"@wordpress/primitives": "4.33.1",
"@wordpress/priority-queue": "3.33.1",
"@wordpress/private-apis": "1.33.1",
"@wordpress/redux-routine": "5.33.1",
"@wordpress/reusable-blocks": "5.33.7",
"@wordpress/rich-text": "7.33.2",
"@wordpress/router": "1.33.1",
"@wordpress/server-side-render": "6.9.4",
"@wordpress/shortcode": "4.33.1",
"@wordpress/style-engine": "2.33.1",
"@wordpress/sync": "1.33.1",
"@wordpress/token-list": "3.33.1",
"@wordpress/undo-manager": "1.33.1",
"@wordpress/upload-media": "0.18.4",
"@wordpress/url": "4.33.1",
"@wordpress/viewport": "6.33.1",
"@wordpress/views": "1.0.7",
"@wordpress/warning": "3.33.1",
"@wordpress/widgets": "4.33.7",
"@wordpress/wordcount": "4.33.1",
"@wordpress/a11y": "4.35.0",
"@wordpress/admin-ui": "1.3.0",
"@wordpress/annotations": "3.35.0",
"@wordpress/api-fetch": "7.35.0",
"@wordpress/autop": "4.35.0",
"@wordpress/base-styles": "6.11.0",
"@wordpress/blob": "4.35.0",
"@wordpress/block-directory": "5.35.0",
"@wordpress/block-editor": "15.8.0",
"@wordpress/block-library": "9.35.0",
"@wordpress/block-serialization-default-parser": "5.35.0",
"@wordpress/blocks": "15.8.0",
"@wordpress/commands": "1.35.0",
"@wordpress/components": "30.8.0",
"@wordpress/compose": "7.35.0",
"@wordpress/core-commands": "1.35.0",
"@wordpress/core-data": "7.35.0",
"@wordpress/customize-widgets": "5.35.0",
"@wordpress/data": "10.35.0",
"@wordpress/data-controls": "4.35.0",
"@wordpress/dataviews": "10.3.0",
"@wordpress/date": "5.35.0",
"@wordpress/deprecated": "4.35.0",
"@wordpress/dom": "4.35.0",
"@wordpress/dom-ready": "4.35.0",
"@wordpress/edit-post": "8.35.0",
"@wordpress/edit-site": "6.35.0",
"@wordpress/edit-widgets": "6.35.0",
"@wordpress/editor": "14.35.0",
"@wordpress/element": "6.35.0",
"@wordpress/escape-html": "3.35.0",
"@wordpress/fields": "0.27.0",
"@wordpress/format-library": "5.35.0",
"@wordpress/global-styles-engine": "1.2.0",
"@wordpress/global-styles-ui": "1.2.0",
"@wordpress/hooks": "4.35.0",
"@wordpress/html-entities": "4.35.0",
"@wordpress/i18n": "6.8.0",
"@wordpress/icons": "11.2.0",
"@wordpress/interactivity": "6.35.0",
"@wordpress/interactivity-router": "2.35.0",
"@wordpress/interface": "9.20.0",
"@wordpress/is-shallow-equal": "5.35.0",
"@wordpress/keyboard-shortcuts": "5.35.0",
"@wordpress/keycodes": "4.35.0",
"@wordpress/latex-to-mathml": "1.3.0",
"@wordpress/list-reusable-blocks": "5.35.0",
"@wordpress/media-utils": "5.35.0",
"@wordpress/notices": "5.35.0",
"@wordpress/nux": "9.35.0",
"@wordpress/patterns": "2.35.0",
"@wordpress/plugins": "7.35.0",
"@wordpress/preferences": "4.35.0",
"@wordpress/preferences-persistence": "2.35.0",
"@wordpress/primitives": "4.35.0",
"@wordpress/priority-queue": "3.35.0",
"@wordpress/private-apis": "1.35.0",
"@wordpress/redux-routine": "5.35.0",
"@wordpress/reusable-blocks": "5.35.0",
"@wordpress/rich-text": "7.35.0",
"@wordpress/router": "1.35.0",
"@wordpress/server-side-render": "6.11.0",
"@wordpress/shortcode": "4.35.0",
"@wordpress/style-engine": "2.35.0",
"@wordpress/sync": "1.35.0",
"@wordpress/token-list": "3.35.0",
"@wordpress/undo-manager": "1.35.0",
"@wordpress/upload-media": "0.20.0",
"@wordpress/url": "4.35.0",
"@wordpress/viewport": "6.35.0",
"@wordpress/views": "1.2.0",
"@wordpress/warning": "3.35.0",
"@wordpress/widgets": "4.35.0",
"@wordpress/wordcount": "4.35.0",
"backbone": "1.6.0",
"clipboard": "2.0.11",
"core-js-url-browser": "3.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-modules-packages.min.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '90f16bd7fc9472806570', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'dea7da43ce140b662d0f', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '765a6ee8162122b48e6c', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3a414634555a20667d6c', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9665632b48682075277', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '292ec2cc397d10d98f6a', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b0f909c3ec791c383210', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => 'f55e93a1ad4806e91785', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '94fc611a7464b5de290a', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'd6b553b57c3908edc8f8', 'type' => 'module'));
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => 'b1bbc770535c02aded73', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '91fbdea2a88aa15e6b6c', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => '8431c61d0eb692b58c8b', 'type' => 'module'), 'block-library/accordion/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '3a414634555a20667d6c', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8db371ec6644fed0ef99', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array(), 'version' => '23f518963e4cf5ee4da0', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fceb3429c1087f0b9764', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b490617b67c1ea6b2e00', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '18a35bd7a52c21861bc9', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '43d196dd8266c19edaab', 'type' => 'module'), 'block-library/tabs/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'f9b9982040ce000c5cf0', 'type' => 'module'), 'block-editor/utils/fit-text-frontend.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e232324bfec8ae2dc657', 'type' => 'module'));
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/accordion-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"shadow": true,
"layout": {
"allowEditing": false
},
},
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down
18 changes: 12 additions & 6 deletions src/wp-includes/blocks/blocks-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -3179,9 +3179,14 @@
'type' => 'boolean',
'default' => true
),
'displayExcerpt' => array(
'type' => 'boolean',
'default' => true
'displayContent' => array(
'type' => 'string',
'default' => 'excerpt',
'enum' => array(
'none',
'excerpt',
'full'
)
)
),
'supports' => array(
Expand Down Expand Up @@ -4404,9 +4409,6 @@
),
'textdomain' => 'default',
'attributes' => array(
'align' => array(
'type' => 'string'
),
'content' => array(
'type' => 'rich-text',
'source' => 'rich-text',
Expand Down Expand Up @@ -4457,6 +4459,7 @@
'typography' => array(
'fontSize' => true,
'lineHeight' => true,
'textAlign' => true,
'__experimentalFontFamily' => true,
'__experimentalTextDecoration' => true,
'__experimentalFontStyle' => true,
Expand Down Expand Up @@ -7771,6 +7774,9 @@
'isLink' => array(
'type' => 'boolean',
'default' => false
),
'levelOptions' => array(
'type' => 'array'
)
),
'supports' => array(
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function render_block_core_categories( $attributes, $content, $block ) {
}
}

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type}" ) );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => "wp-block-categories-{$type} wp-block-categories-taxonomy-{$attributes['taxonomy']}" ) );

return sprintf(
$wrapper_markup,
Expand Down
19 changes: 18 additions & 1 deletion src/wp-includes/blocks/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
if ( isset( $block['attrs']['id'] ) ) {
$img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
$img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] );
$img_srcset = wp_get_attachment_image_srcset( $block['attrs']['id'] );
$img_width = $img_metadata['width'] ?? 'none';
$img_height = $img_metadata['height'] ?? 'none';
}
Expand All @@ -220,6 +221,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
'metadata' => array(
$unique_image_id => array(
'uploadedSrc' => $img_uploaded_src,
'lightboxSrcset' => $img_srcset,
'figureClassNames' => $figure_class_names,
'figureStyles' => $figure_styles,
'imgClassNames' => $img_class_names,
Expand Down Expand Up @@ -252,6 +254,14 @@ function block_core_image_render_lightbox( $block_content, $block ) {
$processor->set_attribute( 'data-wp-init', 'callbacks.setButtonStyles' );
$processor->set_attribute( 'data-wp-on--load', 'callbacks.setButtonStyles' );
$processor->set_attribute( 'data-wp-on-window--resize', 'callbacks.setButtonStyles' );

// Set an event to preload the image on pointerenter and pointerdown(mobile).
// Pointerleave is used to cancel the preload if the user hovers away from the image
// before the predefined delay.
$processor->set_attribute( 'data-wp-on--pointerenter', 'actions.preloadImageWithDelay' );
$processor->set_attribute( 'data-wp-on--pointerdown', 'actions.preloadImage' );
$processor->set_attribute( 'data-wp-on--pointerleave', 'actions.cancelPreload' );

// Sets an event callback on the `img` because the `figure` element can also
// contain a caption, and we don't want to trigger the lightbox when the
// caption is clicked.
Expand Down Expand Up @@ -343,7 +353,14 @@ class="wp-lightbox-overlay zoom"
</div>
<div class="lightbox-image-container">
<figure data-wp-bind--class="state.currentImage.figureClassNames" data-wp-bind--style="state.figureStyles">
<img data-wp-bind--alt="state.currentImage.alt" data-wp-bind--class="state.currentImage.imgClassNames" data-wp-bind--style="state.imgStyles" data-wp-bind--src="state.enlargedSrc">
<img
data-wp-bind--alt="state.currentImage.alt"
data-wp-bind--class="state.currentImage.imgClassNames"
data-wp-bind--style="state.imgStyles"
data-wp-bind--src="state.enlargedSrc"
data-wp-bind--srcset="state.enlargedSrcset"
sizes="100vw"
>
</figure>
</div>
<div class="scrim" style="background-color: $background_color" aria-hidden="true"></div>
Expand Down
13 changes: 11 additions & 2 deletions src/wp-includes/blocks/latest-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
* @return string Returns the post content with latest comments added.
*/
function render_block_core_latest_comments( $attributes ) {
// Handle backward compatibility: check for old displayExcerpt attribute
if ( isset( $attributes['displayExcerpt'] ) ) {
$display_content = $attributes['displayExcerpt'] ? 'excerpt' : 'none';
} else {
$display_content = isset( $attributes['displayContent'] ) ? $attributes['displayContent'] : 'excerpt';
}

$comments = get_comments(
/** This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php */
apply_filters(
Expand Down Expand Up @@ -112,7 +119,9 @@ function render_block_core_latest_comments( $attributes ) {
);
}
$list_items_markup .= '</footer>';
if ( $attributes['displayExcerpt'] ) {
if ( 'full' === $display_content ) {
$list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_text( $comment ) ) . '</div>';
} elseif ( 'excerpt' === $display_content ) {
$list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_excerpt( $comment ) ) . '</div>';
}
$list_items_markup .= '</article></li>';
Expand All @@ -126,7 +135,7 @@ function render_block_core_latest_comments( $attributes ) {
if ( $attributes['displayDate'] ) {
$classnames[] = 'has-dates';
}
if ( $attributes['displayExcerpt'] ) {
if ( 'none' !== $display_content ) {
$classnames[] = 'has-excerpts';
}
if ( empty( $comments ) ) {
Expand Down
7 changes: 4 additions & 3 deletions src/wp-includes/blocks/latest-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"type": "boolean",
"default": true
},
"displayExcerpt": {
"type": "boolean",
"default": true
"displayContent": {
"type": "string",
"default": "excerpt",
"enum": [ "none", "excerpt", "full" ]
}
},
"supports": {
Expand Down
Loading
Loading