Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @wordpress packages #2134

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
256 changes: 128 additions & 128 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,57 +78,57 @@
},
"dependencies": {
"@wordpress/a11y": "3.2.4",
"@wordpress/annotations": "2.2.8",
"@wordpress/annotations": "2.2.9",
"@wordpress/api-fetch": "5.2.6",
"@wordpress/autop": "3.2.3",
"@wordpress/blob": "3.2.2",
"@wordpress/block-directory": "3.0.20",
"@wordpress/block-editor": "8.0.13",
"@wordpress/block-library": "6.0.18",
"@wordpress/block-directory": "3.0.21",
"@wordpress/block-editor": "8.0.14",
"@wordpress/block-library": "6.0.19",
"@wordpress/block-serialization-default-parser": "4.2.3",
"@wordpress/blocks": "11.1.5",
"@wordpress/components": "19.2.0",
"@wordpress/components": "19.2.1",
"@wordpress/compose": "5.0.7",
"@wordpress/core-data": "4.0.9",
"@wordpress/customize-widgets": "2.0.20",
"@wordpress/customize-widgets": "2.0.21",
"@wordpress/data": "6.1.5",
"@wordpress/data-controls": "2.2.8",
"@wordpress/date": "4.2.3",
"@wordpress/deprecated": "3.2.3",
"@wordpress/dom": "3.2.7",
"@wordpress/dom-ready": "3.2.3",
"@wordpress/edit-post": "5.0.20",
"@wordpress/edit-site": "3.0.20",
"@wordpress/edit-widgets": "3.1.15",
"@wordpress/editor": "12.0.16",
"@wordpress/edit-post": "5.0.21",
"@wordpress/edit-site": "3.0.21",
"@wordpress/edit-widgets": "3.1.16",
"@wordpress/editor": "12.0.17",
"@wordpress/element": "4.0.4",
"@wordpress/escape-html": "2.2.3",
"@wordpress/format-library": "3.0.19",
"@wordpress/format-library": "3.0.20",
"@wordpress/hooks": "3.2.2",
"@wordpress/html-entities": "3.2.3",
"@wordpress/i18n": "4.2.4",
"@wordpress/icons": "6.1.1",
"@wordpress/interface": "4.1.15",
"@wordpress/interface": "4.1.16",
"@wordpress/is-shallow-equal": "4.2.1",
"@wordpress/keyboard-shortcuts": "3.0.7",
"@wordpress/keycodes": "3.2.4",
"@wordpress/list-reusable-blocks": "3.0.17",
"@wordpress/list-reusable-blocks": "3.0.18",
"@wordpress/media-utils": "3.0.5",
"@wordpress/notices": "3.2.8",
"@wordpress/nux": "5.0.17",
"@wordpress/nux": "5.0.18",
"@wordpress/plugins": "4.0.7",
"@wordpress/primitives": "3.0.4",
"@wordpress/priority-queue": "2.2.3",
"@wordpress/redux-routine": "4.2.2",
"@wordpress/reusable-blocks": "3.0.19",
"@wordpress/rich-text": "5.0.7",
"@wordpress/server-side-render": "3.0.17",
"@wordpress/reusable-blocks": "3.0.20",
"@wordpress/rich-text": "5.0.8",
"@wordpress/server-side-render": "3.0.18",
"@wordpress/shortcode": "3.2.3",
"@wordpress/token-list": "2.2.2",
"@wordpress/url": "3.3.1",
"@wordpress/viewport": "4.0.7",
"@wordpress/warning": "2.2.2",
"@wordpress/widgets": "2.0.19",
"@wordpress/widgets": "2.0.20",
"@wordpress/wordcount": "3.2.3",
"backbone": "1.4.0",
"clipboard": "2.0.8",
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/wp-includes/blocks/navigation-submenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
$aria_label = sprintf(
/* translators: Accessibility text. %s: Parent page title. */
__( '%s submenu' ),
$label
wp_strip_all_tags( $label )
);

$html = '<li ' . $wrapper_attributes . '>';
Expand Down Expand Up @@ -231,7 +231,7 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {

if ( $show_submenu_indicators ) {
// The submenu icon is rendered in a button here
// so that there's a clickable elment to open the submenu.
// so that there's a clickable element to open the submenu.
$html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks/page-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
$aria_label = sprintf(
/* translators: Accessibility text. %s: Parent page title. */
__( '%s submenu' ),
$title
wp_strip_all_tags( $title )
);

$markup .= '<li class="wp-block-pages-list__item' . $css_class . '"' . $style_attribute . '>';
Expand Down
5 changes: 5 additions & 0 deletions src/wp-includes/blocks/post-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ function render_block_core_post_content( $attributes, $content, $block ) {
// so that `the_preview` for the current post can apply.
// We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
$content = get_the_content( null, false );
// Check for nextpage to display page links for paginated posts.
if ( has_block( 'core/nextpage' ) ) {
$content .= wp_link_pages( array( 'echo' => 0 ) );
}

/** This filter is documented in wp-includes/post-template.php */
$content = apply_filters( 'the_content', str_replace( ']]>', ']]&gt;', $content ) );
unset( $seen_ids[ $post_id ] );
Expand Down
5 changes: 3 additions & 2 deletions src/wp-includes/blocks/query-pagination-next.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ function render_block_core_query_pagination_next( $attributes, $content, $block
$content = get_next_posts_link( $label, $max_page );
remove_filter( 'next_posts_link_attributes', $filter_link_attributes );
} elseif ( ! $max_page || $max_page > $page ) {
$custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) );
if ( (int) $custom_query->max_num_pages !== $page ) {
$custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) );
$custom_query_max_pages = (int) $custom_query->max_num_pages;
if ( $custom_query_max_pages && $custom_query_max_pages !== $page ) {
$content = sprintf(
'<a href="%1$s" %2$s>%3$s</a>',
esc_url( add_query_arg( $page_key, $page + 1 ) ),
Expand Down
18 changes: 9 additions & 9 deletions src/wp-includes/blocks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ function render_block_core_search( $attributes ) {
$label_markup = sprintf(
'<label for="%1$s" class="wp-block-search__label screen-reader-text">%2$s</label>',
$input_id,
empty( $attributes['label'] ) ? __( 'Search' ) : $attributes['label']
empty( $attributes['label'] ) ? __( 'Search' ) : esc_html( $attributes['label'] )
);
if ( $show_label && ! empty( $attributes['label'] ) ) {
$label_markup = sprintf(
'<label for="%1$s" class="wp-block-search__label">%2$s</label>',
$input_id,
$attributes['label']
esc_html( $attributes['label'] )
);
}

Expand All @@ -61,7 +61,7 @@ function render_block_core_search( $attributes ) {
$input_markup = sprintf(
'<input type="search" id="%s" class="wp-block-search__input %s" name="s" value="%s" placeholder="%s" %s required />',
$input_id,
$input_classes,
esc_attr( $input_classes ),
esc_attr( get_search_query() ),
esc_attr( $attributes['placeholder'] ),
$inline_styles['input']
Expand All @@ -77,7 +77,7 @@ function render_block_core_search( $attributes ) {
}
if ( ! $use_icon_button ) {
if ( ! empty( $attributes['buttonText'] ) ) {
$button_internal_markup = $attributes['buttonText'];
$button_internal_markup = esc_html( $attributes['buttonText'] );
}
} else {
$button_classes .= ' has-icon';
Expand All @@ -89,7 +89,7 @@ function render_block_core_search( $attributes ) {

$button_markup = sprintf(
'<button type="submit" class="wp-block-search__button %s" %s>%s</button>',
$button_classes,
esc_attr( $button_classes ),
$inline_styles['button'],
$button_internal_markup
);
Expand All @@ -98,7 +98,7 @@ function render_block_core_search( $attributes ) {
$field_markup_classes = $is_button_inside ? $border_color_classes : '';
$field_markup = sprintf(
'<div class="wp-block-search__inside-wrapper %s" %s>%s</div>',
$field_markup_classes,
esc_attr( $field_markup_classes ),
$inline_styles['wrapper'],
$input_markup . $button_markup
);
Expand Down Expand Up @@ -285,9 +285,9 @@ function styles_for_block_core_search( $attributes ) {
}

return array(
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', implode( ' ', $input_styles ) ) : '',
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', implode( ' ', $button_styles ) ) : '',
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', implode( ' ', $wrapper_styles ) ) : '',
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $input_styles ) ) ) : '',
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $button_styles ) ) ) : '',
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) : '',
);
}

Expand Down