mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Update editor related npm packages for beta 3 second part.
The npm packages needed a second part to the update for beta 3 in preparation for 6.4. Props talldan, ellatrix, santosguillamot, ramonopoly, andrewserong, artemiosans, isabel_brison, mikachan. See #59411. git-svn-id: https://develop.svn.wordpress.org/trunk@56816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -200,6 +200,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
|
||||
$w->set_attribute( 'data-wp-init', 'effects.core.image.setCurrentSrc' );
|
||||
$w->set_attribute( 'data-wp-on--load', 'actions.core.image.handleLoad' );
|
||||
$w->set_attribute( 'data-wp-effect', 'effects.core.image.setButtonStyles' );
|
||||
$w->set_attribute( 'data-wp-effect--setStylesOnResize', 'effects.core.image.setStylesOnResize' );
|
||||
$body_content = $w->get_updated_html();
|
||||
|
||||
// Wrap the image in the body content with a button.
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '21b886a7aa24f5c7c9ef');
|
||||
<?php return array('dependencies' => array(), 'version' => 'aaa9542ea1e8b0279ca6');
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '6e38467974481d14d2da');
|
||||
<?php return array('dependencies' => array(), 'version' => '658cda6fbef6b9d36ffd');
|
||||
|
||||
@@ -152,10 +152,9 @@ function render_block_core_latest_posts( $attributes ) {
|
||||
if ( $excerpt_length <= $block_core_latest_posts_excerpt_length ) {
|
||||
$trimmed_excerpt = substr( $trimmed_excerpt, 0, -11 );
|
||||
$trimmed_excerpt .= sprintf(
|
||||
/* translators: 1: A URL to a post, 2: The static string "Read more", 3: The post title only visible to screen readers. */
|
||||
__( '… <a href="%1$s" rel="noopener noreferrer">%2$s<span class="screen-reader-text">: %3$s</span></a>' ),
|
||||
/* translators: 1: A URL to a post, 2: Hidden accessibility text: Post title */
|
||||
__( '… <a href="%1$s" rel="noopener noreferrer">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
|
||||
esc_url( $post_link ),
|
||||
__( 'Read more' ),
|
||||
esc_html( $title )
|
||||
);
|
||||
}
|
||||
|
||||
@@ -696,9 +696,22 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
$responsive_dialog_directives = '';
|
||||
$close_button_directives = '';
|
||||
if ( $should_load_view_script ) {
|
||||
$nav_element_context = wp_json_encode(
|
||||
array(
|
||||
'core' => array(
|
||||
'navigation' => array(
|
||||
'overlayOpenedBy' => array(),
|
||||
'type' => 'overlay',
|
||||
'roleAttribute' => '',
|
||||
'ariaLabel' => __( 'Menu' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP
|
||||
);
|
||||
$nav_element_directives = '
|
||||
data-wp-interactive
|
||||
data-wp-context=\'{ "core": { "navigation": { "overlayOpenedBy": {}, "type": "overlay", "roleAttribute": "" } } }\'
|
||||
data-wp-context=\'' . $nav_element_context . '\'
|
||||
';
|
||||
$open_button_directives = '
|
||||
data-wp-on--click="actions.core.navigation.openMenuOnClick"
|
||||
@@ -714,6 +727,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
';
|
||||
$responsive_dialog_directives = '
|
||||
data-wp-bind--aria-modal="selectors.core.navigation.ariaModal"
|
||||
data-wp-bind--aria-label="selectors.core.navigation.ariaLabel"
|
||||
data-wp-bind--role="selectors.core.navigation.roleAttribute"
|
||||
data-wp-effect="effects.core.navigation.focusFirstElement"
|
||||
';
|
||||
@@ -723,11 +737,11 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
}
|
||||
|
||||
$responsive_container_markup = sprintf(
|
||||
'<button aria-haspopup="true" %3$s class="%6$s" %11$s>%9$s</button>
|
||||
<div class="%5$s" style="%7$s" id="%1$s" %12$s>
|
||||
'<button aria-haspopup="true" %3$s class="%6$s" %10$s>%8$s</button>
|
||||
<div class="%5$s" style="%7$s" id="%1$s" %11$s>
|
||||
<div class="wp-block-navigation__responsive-close" tabindex="-1">
|
||||
<div class="wp-block-navigation__responsive-dialog" aria-label="%8$s" %13$s>
|
||||
<button %4$s class="wp-block-navigation__responsive-container-close" %14$s>%10$s</button>
|
||||
<div class="wp-block-navigation__responsive-dialog" %12$s>
|
||||
<button %4$s class="wp-block-navigation__responsive-container-close" %13$s>%9$s</button>
|
||||
<div class="wp-block-navigation__responsive-container-content" id="%1$s-content">
|
||||
%2$s
|
||||
</div>
|
||||
@@ -741,7 +755,6 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
esc_attr( implode( ' ', $responsive_container_classes ) ),
|
||||
esc_attr( implode( ' ', $open_button_classes ) ),
|
||||
esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) ),
|
||||
__( 'Menu' ),
|
||||
$toggle_button_content,
|
||||
$toggle_close_button_content,
|
||||
$open_button_directives,
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => 'fa68a54f17d2cf6a40e0');
|
||||
<?php return array('dependencies' => array(), 'version' => '825c00b0743ccffd2242');
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => 'dde7635cad8b0819b900');
|
||||
<?php return array('dependencies' => array(), 'version' => 'a5ffa1bdbe6aee7a5c54');
|
||||
|
||||
@@ -34,7 +34,8 @@ function render_block_core_query( $attributes, $content, $block ) {
|
||||
'loadedText' => __( 'Page Loaded.' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP
|
||||
)
|
||||
);
|
||||
$content = $p->get_updated_html();
|
||||
|
||||
Reference in New Issue
Block a user