mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editor: Update packages for 6.1 Release Candidate 1.
Package updates for bug and regression fixes: @wordpress/block-directory: 3.15.6 @wordpress/block-editor: 10.0.6 @wordpress/block-library: 7.14.6 @wordpress/components: 21.0.5 @wordpress/customize-widgets: 3.14.6 @wordpress/edit-post: 6.14.6 @wordpress/edit-site: 4.14.8 @wordpress/edit-widgets: 4.14.6 @wordpress/editor: 12.16.6 @wordpress/format-library: 3.15.6 @wordpress/interface: 4.16.5 @wordpress/list-reusable-blocks: 3.15.5 @wordpress/nux: 5.15.5 @wordpress/preferences: 2.9.5 @wordpress/reusable-blocks: 3.15.6 @wordpress/server-side-render: 3.15.5 @wordpress/widgets: 2.15.6 References: * [https://github.com/WordPress/gutenberg/pull/43181 Gutenberg PR 43181] - Merge inner blocks if wrappers are equal * [https://github.com/WordPress/gutenberg/pull/44098 Gutenberg PR 44098] - Fix content blocks with nested blocks always appear as top level * [https://github.com/WordPress/gutenberg/pull/44150 Gutenberg PR 44150] - Refresh selection styles * [https://github.com/WordPress/gutenberg/pull/44415 Gutenberg PR 44415] - Removes `__unstableMaxPages` attribute from Page List and Nav blocks * [https://github.com/WordPress/gutenberg/pull/44463 Gutenberg PR 44463] - Follow discussion settings in the comments block edit * [https://github.com/WordPress/gutenberg/pull/44584 Gutenberg PR 44584] - Avoid querying block templates during installation * [https://github.com/WordPress/gutenberg/pull/44637 Gutenberg PR 44637] - Resizable editor: Fix height setting bug * [https://github.com/WordPress/gutenberg/pull/44640 Gutenberg PR 44640] - Only include theme.css if the theme declares support for wp-block-styles * [https://github.com/WordPress/gutenberg/pull/44650 Gutenberg PR 44650] - Fix empty links being created for the author's name comment * [https://github.com/WordPress/gutenberg/pull/44652 Gutenberg PR 44652] - Block Editor: Fix block search for non-Latin characters * [https://github.com/WordPress/gutenberg/pull/44660 Gutenberg PR 44660] - Legacy Group inner block wrapper should work with constrained layout * [https://github.com/WordPress/gutenberg/pull/44676 Gutenberg PR 44676] - Hide list items from content area of content locked blocks * [https://github.com/WordPress/gutenberg/pull/44718 Gutenberg PR 44718] - Margin visualizer: Apply negative value to margins with `calc()` * [https://github.com/WordPress/gutenberg/pull/44721 Gutenberg PR 44721] - Remove anchor support from the navigation block * [https://github.com/WordPress/gutenberg/pull/44731 Gutenberg PR 44731] - Buttons: Add specificity for the editor Follow-up to [54257], [54335], and [54383]. Props bernhard-reiter, czapla, annezazu, cbravobernal, ndiego, bjorsch, nendeb55. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
525d6d2a34
commit
d6f9c7d0bb
1012
package-lock.json
generated
1012
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -81,56 +81,56 @@
|
||||
"@wordpress/api-fetch": "6.14.1",
|
||||
"@wordpress/autop": "3.17.1",
|
||||
"@wordpress/blob": "3.17.1",
|
||||
"@wordpress/block-directory": "3.15.4",
|
||||
"@wordpress/block-editor": "10.0.4",
|
||||
"@wordpress/block-library": "7.14.4",
|
||||
"@wordpress/block-directory": "3.15.6",
|
||||
"@wordpress/block-editor": "10.0.6",
|
||||
"@wordpress/block-library": "7.14.6",
|
||||
"@wordpress/block-serialization-default-parser": "4.17.1",
|
||||
"@wordpress/blocks": "11.16.4",
|
||||
"@wordpress/components": "21.0.4",
|
||||
"@wordpress/components": "21.0.5",
|
||||
"@wordpress/compose": "5.15.2",
|
||||
"@wordpress/core-data": "5.0.4",
|
||||
"@wordpress/customize-widgets": "3.14.4",
|
||||
"@wordpress/customize-widgets": "3.14.6",
|
||||
"@wordpress/data": "7.1.3",
|
||||
"@wordpress/data-controls": "2.17.3",
|
||||
"@wordpress/date": "4.17.1",
|
||||
"@wordpress/deprecated": "3.17.1",
|
||||
"@wordpress/dom": "3.17.2",
|
||||
"@wordpress/dom-ready": "3.17.1",
|
||||
"@wordpress/edit-post": "6.14.4",
|
||||
"@wordpress/edit-site": "4.14.6",
|
||||
"@wordpress/edit-widgets": "4.14.4",
|
||||
"@wordpress/editor": "12.16.4",
|
||||
"@wordpress/edit-post": "6.14.6",
|
||||
"@wordpress/edit-site": "4.14.8",
|
||||
"@wordpress/edit-widgets": "4.14.6",
|
||||
"@wordpress/editor": "12.16.6",
|
||||
"@wordpress/element": "4.15.1",
|
||||
"@wordpress/escape-html": "2.17.1",
|
||||
"@wordpress/format-library": "3.15.4",
|
||||
"@wordpress/format-library": "3.15.6",
|
||||
"@wordpress/hooks": "3.17.1",
|
||||
"@wordpress/html-entities": "3.17.1",
|
||||
"@wordpress/i18n": "4.17.1",
|
||||
"@wordpress/icons": "9.8.1",
|
||||
"@wordpress/interface": "4.16.4",
|
||||
"@wordpress/interface": "4.16.5",
|
||||
"@wordpress/is-shallow-equal": "4.17.1",
|
||||
"@wordpress/keyboard-shortcuts": "3.15.3",
|
||||
"@wordpress/keycodes": "3.17.1",
|
||||
"@wordpress/list-reusable-blocks": "3.15.4",
|
||||
"@wordpress/list-reusable-blocks": "3.15.5",
|
||||
"@wordpress/media-utils": "4.8.1",
|
||||
"@wordpress/notices": "3.17.3",
|
||||
"@wordpress/nux": "5.15.4",
|
||||
"@wordpress/nux": "5.15.5",
|
||||
"@wordpress/plugins": "4.15.2",
|
||||
"@wordpress/preferences": "2.9.4",
|
||||
"@wordpress/preferences": "2.9.5",
|
||||
"@wordpress/preferences-persistence": "1.9.1",
|
||||
"@wordpress/primitives": "3.15.1",
|
||||
"@wordpress/priority-queue": "2.17.2",
|
||||
"@wordpress/redux-routine": "4.17.1",
|
||||
"@wordpress/reusable-blocks": "3.15.4",
|
||||
"@wordpress/reusable-blocks": "3.15.6",
|
||||
"@wordpress/rich-text": "5.15.3",
|
||||
"@wordpress/server-side-render": "3.15.4",
|
||||
"@wordpress/server-side-render": "3.15.5",
|
||||
"@wordpress/shortcode": "3.17.1",
|
||||
"@wordpress/style-engine": "1.0.3",
|
||||
"@wordpress/token-list": "2.17.1",
|
||||
"@wordpress/url": "3.18.1",
|
||||
"@wordpress/viewport": "4.15.3",
|
||||
"@wordpress/warning": "2.17.1",
|
||||
"@wordpress/widgets": "2.15.4",
|
||||
"@wordpress/widgets": "2.15.6",
|
||||
"@wordpress/wordcount": "3.17.1",
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.11",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -34,7 +34,7 @@ function render_block_core_comment_author_name( $attributes, $content, $block )
|
||||
$comment_author = get_comment_author( $comment );
|
||||
$link = get_comment_author_url( $comment );
|
||||
|
||||
if ( ! empty( $attributes['isLink'] ) && ! empty( $attributes['linkTarget'] ) ) {
|
||||
if ( ! empty( $link ) && ! empty( $attributes['isLink'] ) && ! empty( $attributes['linkTarget'] ) ) {
|
||||
$comment_author = sprintf( '<a rel="external nofollow ugc" href="%1s" target="%2s" >%3s</a>', esc_url( $link ), esc_attr( $attributes['linkTarget'] ), $comment_author );
|
||||
}
|
||||
if ( '0' === $comment->comment_approved && ! $show_pending_links ) {
|
||||
|
||||
@ -98,7 +98,14 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
|
||||
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
||||
} elseif ( $has_custom_font_size ) {
|
||||
// Add the custom font size inline style.
|
||||
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
||||
$font_sizes['inline_styles'] = sprintf(
|
||||
'font-size: %s;',
|
||||
gutenberg_get_typography_font_size_value(
|
||||
array(
|
||||
'size' => $context['style']['typography']['fontSize'],
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $font_sizes;
|
||||
|
||||
@ -98,7 +98,14 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
|
||||
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
||||
} elseif ( $has_custom_font_size ) {
|
||||
// Add the custom font size inline style.
|
||||
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
||||
$font_sizes['inline_styles'] = sprintf(
|
||||
'font-size: %s;',
|
||||
gutenberg_get_typography_font_size_value(
|
||||
array(
|
||||
'size' => $context['style']['typography']['fontSize'],
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $font_sizes;
|
||||
|
||||
@ -307,9 +307,6 @@ function block_core_navigation_get_fallback_blocks() {
|
||||
$page_list_fallback = array(
|
||||
array(
|
||||
'blockName' => 'core/page-list',
|
||||
'attrs' => array(
|
||||
'__unstableMaxPages' => 4,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
@ -88,7 +88,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"inserter": true,
|
||||
"typography": {
|
||||
|
||||
@ -119,7 +119,14 @@ function block_core_page_list_build_css_font_sizes( $context ) {
|
||||
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
|
||||
} elseif ( $has_custom_font_size ) {
|
||||
// Add the custom font size inline style.
|
||||
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
|
||||
$font_sizes['inline_styles'] = sprintf(
|
||||
'font-size: %s;',
|
||||
gutenberg_get_typography_font_size_value(
|
||||
array(
|
||||
'size' => $context['style']['typography']['fontSize'],
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $font_sizes;
|
||||
@ -299,11 +306,6 @@ function render_block_core_page_list( $attributes, $content, $block ) {
|
||||
|
||||
$nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children );
|
||||
|
||||
// Limit the number of items to be visually displayed.
|
||||
if ( ! empty( $attributes['__unstableMaxPages'] ) ) {
|
||||
$nested_pages = array_slice( $nested_pages, 0, $attributes['__unstableMaxPages'] );
|
||||
}
|
||||
|
||||
$is_navigation_child = array_key_exists( 'showSubmenuIcon', $block->context );
|
||||
|
||||
$open_submenus_on_click = array_key_exists( 'openSubmenusOnClick', $block->context ) ? $block->context['openSubmenusOnClick'] : false;
|
||||
|
||||
@ -7,11 +7,7 @@
|
||||
"description": "Display a list of all pages.",
|
||||
"keywords": [ "menu", "navigation" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"__unstableMaxPages": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"attributes": {},
|
||||
"usesContext": [
|
||||
"textColor",
|
||||
"customTextColor",
|
||||
|
||||
@ -2,62 +2,62 @@
|
||||
|
||||
// This file was autogenerated by tools/release/sync-stable-blocks.js, do not change manually!
|
||||
// Requires files for dynamic blocks necessary for core blocks registration.
|
||||
require ABSPATH . WPINC . '/blocks/archives.php';
|
||||
require ABSPATH . WPINC . '/blocks/avatar.php';
|
||||
require ABSPATH . WPINC . '/blocks/block.php';
|
||||
require ABSPATH . WPINC . '/blocks/calendar.php';
|
||||
require ABSPATH . WPINC . '/blocks/categories.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-author-name.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-content.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-date.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-edit-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-reply-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/comment-template.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments-pagination.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments-pagination-next.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments-pagination-numbers.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments-pagination-previous.php';
|
||||
require ABSPATH . WPINC . '/blocks/comments-title.php';
|
||||
require ABSPATH . WPINC . '/blocks/cover.php';
|
||||
require ABSPATH . WPINC . '/blocks/file.php';
|
||||
require ABSPATH . WPINC . '/blocks/gallery.php';
|
||||
require ABSPATH . WPINC . '/blocks/home-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/image.php';
|
||||
require ABSPATH . WPINC . '/blocks/latest-comments.php';
|
||||
require ABSPATH . WPINC . '/blocks/latest-posts.php';
|
||||
require ABSPATH . WPINC . '/blocks/loginout.php';
|
||||
require ABSPATH . WPINC . '/blocks/navigation.php';
|
||||
require ABSPATH . WPINC . '/blocks/navigation-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/navigation-submenu.php';
|
||||
require ABSPATH . WPINC . '/blocks/page-list.php';
|
||||
require ABSPATH . WPINC . '/blocks/pattern.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-author.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-author-biography.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-comments-form.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-content.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-date.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-excerpt.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-featured-image.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-navigation-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-template.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-terms.php';
|
||||
require ABSPATH . WPINC . '/blocks/post-title.php';
|
||||
require ABSPATH . WPINC . '/blocks/query.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-no-results.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-pagination.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-pagination-next.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-pagination-numbers.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-pagination-previous.php';
|
||||
require ABSPATH . WPINC . '/blocks/query-title.php';
|
||||
require ABSPATH . WPINC . '/blocks/read-more.php';
|
||||
require ABSPATH . WPINC . '/blocks/rss.php';
|
||||
require ABSPATH . WPINC . '/blocks/search.php';
|
||||
require ABSPATH . WPINC . '/blocks/shortcode.php';
|
||||
require ABSPATH . WPINC . '/blocks/site-logo.php';
|
||||
require ABSPATH . WPINC . '/blocks/site-tagline.php';
|
||||
require ABSPATH . WPINC . '/blocks/site-title.php';
|
||||
require ABSPATH . WPINC . '/blocks/social-link.php';
|
||||
require ABSPATH . WPINC . '/blocks/tag-cloud.php';
|
||||
require ABSPATH . WPINC . '/blocks/template-part.php';
|
||||
require ABSPATH . WPINC . '/blocks/term-description.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/archives.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/avatar.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/block.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/calendar.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/categories.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-author-name.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-content.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-date.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-edit-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-reply-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comment-template.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments-pagination.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments-pagination-next.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments-pagination-numbers.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments-pagination-previous.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/comments-title.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/cover.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/file.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/gallery.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/home-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/image.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/latest-comments.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/latest-posts.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/loginout.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/navigation.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/navigation-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/navigation-submenu.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/page-list.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/pattern.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-author.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-author-biography.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-comments-form.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-content.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-date.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-excerpt.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-featured-image.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-navigation-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-template.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-terms.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/post-title.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-no-results.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-pagination.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-pagination-next.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-pagination-numbers.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-pagination-previous.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/query-title.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/read-more.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/rss.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/search.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/shortcode.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/site-logo.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/site-tagline.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/site-title.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/social-link.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/tag-cloud.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/template-part.php';
|
||||
require_once ABSPATH . WPINC . '/blocks/term-description.php';
|
||||
|
||||
@ -381,7 +381,7 @@ function styles_for_block_core_search( $attributes ) {
|
||||
}
|
||||
|
||||
// Get typography styles to be shared across inner elements.
|
||||
$typography_styles = get_typography_styles_for_block_core_search( $attributes );
|
||||
$typography_styles = esc_attr( get_typography_styles_for_block_core_search( $attributes ) );
|
||||
if ( ! empty( $typography_styles ) ) {
|
||||
$label_styles [] = $typography_styles;
|
||||
$button_styles[] = $typography_styles;
|
||||
@ -442,31 +442,39 @@ function get_typography_styles_for_block_core_search( $attributes ) {
|
||||
|
||||
// Add typography styles.
|
||||
if ( ! empty( $attributes['style']['typography']['fontSize'] ) ) {
|
||||
$typography_styles[] = sprintf( 'font-size: %s;', esc_attr( $attributes['style']['typography']['fontSize'] ) );
|
||||
$typography_styles[] = sprintf(
|
||||
'font-size: %s;',
|
||||
gutenberg_get_typography_font_size_value(
|
||||
array(
|
||||
'size' => $attributes['style']['typography']['fontSize'],
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['fontFamily'] ) ) {
|
||||
$typography_styles[] = sprintf( 'font-family: %s;', esc_attr( $attributes['style']['typography']['fontFamily'] ) );
|
||||
$typography_styles[] = sprintf( 'font-family: %s;', $attributes['style']['typography']['fontFamily'] );
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['letterSpacing'] ) ) {
|
||||
$typography_styles[] = sprintf( 'letter-spacing: %s;', esc_attr( $attributes['style']['typography']['letterSpacing'] ) );
|
||||
$typography_styles[] = sprintf( 'letter-spacing: %s;', $attributes['style']['typography']['letterSpacing'] );
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['fontWeight'] ) ) {
|
||||
$typography_styles[] = sprintf( 'font-weight: %s;', esc_attr( $attributes['style']['typography']['fontWeight'] ) );
|
||||
$typography_styles[] = sprintf( 'font-weight: %s;', $attributes['style']['typography']['fontWeight'] );
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['fontStyle'] ) ) {
|
||||
$typography_styles[] = sprintf( 'font-style: %s;', esc_attr( $attributes['style']['typography']['fontStyle'] ) );
|
||||
$typography_styles[] = sprintf( 'font-style: %s;', $attributes['style']['typography']['fontStyle'] );
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['lineHeight'] ) ) {
|
||||
$typography_styles[] = sprintf( 'line-height: %s;', esc_attr( $attributes['style']['typography']['lineHeight'] ) );
|
||||
$typography_styles[] = sprintf( 'line-height: %s;', $attributes['style']['typography']['lineHeight'] );
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['style']['typography']['textTransform'] ) ) {
|
||||
$typography_styles[] = sprintf( 'text-transform: %s;', esc_attr( $attributes['style']['typography']['textTransform'] ) );
|
||||
$typography_styles[] = sprintf( 'text-transform: %s;', $attributes['style']['typography']['textTransform'] );
|
||||
}
|
||||
|
||||
return implode( '', $typography_styles );
|
||||
|
||||
@ -189,6 +189,11 @@ function build_template_part_block_area_variations() {
|
||||
* @return array Array containing the block variation objects.
|
||||
*/
|
||||
function build_template_part_block_instance_variations() {
|
||||
// Block themes are unavailable during installation.
|
||||
if ( wp_installing() ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$variations = array();
|
||||
$template_parts = get_block_templates(
|
||||
array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user