mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
Editor: Update packages for 6.8 Beta 1.
Syncs @wordpress/* packages to the 'latest' npm tag. Props mamaduka, joemcgill, desrosj. See #62887. git-svn-id: https://develop.svn.wordpress.org/trunk@59906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4ed2a8b128
commit
bc1bdb3a06
1788
package-lock.json
generated
1788
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
148
package.json
148
package.json
@ -27,12 +27,12 @@
|
||||
"@lodder/grunt-postcss": "^3.1.1",
|
||||
"@playwright/test": "1.49.1",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
|
||||
"@wordpress/babel-preset-default": "8.17.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "6.17.0",
|
||||
"@wordpress/e2e-test-utils": "11.17.0",
|
||||
"@wordpress/e2e-test-utils-playwright": "1.17.0",
|
||||
"@wordpress/prettier-config": "4.17.0",
|
||||
"@wordpress/scripts": "30.10.0",
|
||||
"@wordpress/babel-preset-default": "8.19.0",
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "6.19.0",
|
||||
"@wordpress/e2e-test-utils": "11.19.0",
|
||||
"@wordpress/e2e-test-utils-playwright": "1.19.0",
|
||||
"@wordpress/prettier-config": "4.19.0",
|
||||
"@wordpress/scripts": "30.12.0",
|
||||
"autoprefixer": "10.4.20",
|
||||
"chalk": "5.3.0",
|
||||
"check-node-version": "4.2.1",
|
||||
@ -77,74 +77,74 @@
|
||||
"webpack-livereload-plugin": "3.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wordpress/a11y": "4.17.0",
|
||||
"@wordpress/annotations": "3.17.0",
|
||||
"@wordpress/api-fetch": "7.17.0",
|
||||
"@wordpress/autop": "4.17.0",
|
||||
"@wordpress/blob": "4.17.0",
|
||||
"@wordpress/block-directory": "5.17.1",
|
||||
"@wordpress/block-editor": "14.12.0",
|
||||
"@wordpress/block-library": "9.17.0",
|
||||
"@wordpress/block-serialization-default-parser": "5.17.0",
|
||||
"@wordpress/blocks": "14.6.0",
|
||||
"@wordpress/commands": "1.17.0",
|
||||
"@wordpress/components": "29.3.0",
|
||||
"@wordpress/compose": "7.17.0",
|
||||
"@wordpress/core-commands": "1.17.0",
|
||||
"@wordpress/core-data": "7.17.0",
|
||||
"@wordpress/customize-widgets": "5.17.0",
|
||||
"@wordpress/data": "10.17.0",
|
||||
"@wordpress/data-controls": "4.17.0",
|
||||
"@wordpress/dataviews": "4.13.0",
|
||||
"@wordpress/date": "5.17.0",
|
||||
"@wordpress/deprecated": "4.17.0",
|
||||
"@wordpress/dom": "4.17.0",
|
||||
"@wordpress/dom-ready": "4.17.0",
|
||||
"@wordpress/edit-post": "8.17.1",
|
||||
"@wordpress/edit-site": "6.17.1",
|
||||
"@wordpress/edit-widgets": "6.17.0",
|
||||
"@wordpress/editor": "14.17.1",
|
||||
"@wordpress/element": "6.17.0",
|
||||
"@wordpress/escape-html": "3.17.0",
|
||||
"@wordpress/fields": "0.9.0",
|
||||
"@wordpress/format-library": "5.17.0",
|
||||
"@wordpress/hooks": "4.17.0",
|
||||
"@wordpress/html-entities": "4.17.0",
|
||||
"@wordpress/i18n": "5.17.0",
|
||||
"@wordpress/icons": "10.17.0",
|
||||
"@wordpress/interactivity": "6.17.0",
|
||||
"@wordpress/interactivity-router": "2.17.0",
|
||||
"@wordpress/interface": "9.2.0",
|
||||
"@wordpress/is-shallow-equal": "5.17.0",
|
||||
"@wordpress/keyboard-shortcuts": "5.17.0",
|
||||
"@wordpress/keycodes": "4.17.0",
|
||||
"@wordpress/list-reusable-blocks": "5.17.0",
|
||||
"@wordpress/media-utils": "5.17.0",
|
||||
"@wordpress/notices": "5.17.0",
|
||||
"@wordpress/nux": "9.17.0",
|
||||
"@wordpress/patterns": "2.17.0",
|
||||
"@wordpress/plugins": "7.17.0",
|
||||
"@wordpress/preferences": "4.17.0",
|
||||
"@wordpress/preferences-persistence": "2.17.0",
|
||||
"@wordpress/primitives": "4.17.0",
|
||||
"@wordpress/priority-queue": "3.17.0",
|
||||
"@wordpress/private-apis": "1.17.0",
|
||||
"@wordpress/redux-routine": "5.17.0",
|
||||
"@wordpress/reusable-blocks": "5.17.0",
|
||||
"@wordpress/rich-text": "7.17.0",
|
||||
"@wordpress/router": "1.17.0",
|
||||
"@wordpress/server-side-render": "5.17.0",
|
||||
"@wordpress/shortcode": "4.17.0",
|
||||
"@wordpress/style-engine": "2.17.0",
|
||||
"@wordpress/sync": "1.17.0",
|
||||
"@wordpress/token-list": "3.17.0",
|
||||
"@wordpress/undo-manager": "1.17.0",
|
||||
"@wordpress/upload-media": "0.2.0",
|
||||
"@wordpress/url": "4.17.0",
|
||||
"@wordpress/viewport": "6.17.0",
|
||||
"@wordpress/warning": "3.17.0",
|
||||
"@wordpress/widgets": "4.17.0",
|
||||
"@wordpress/wordcount": "4.17.0",
|
||||
"@wordpress/a11y": "4.19.0",
|
||||
"@wordpress/annotations": "3.19.0",
|
||||
"@wordpress/api-fetch": "7.19.0",
|
||||
"@wordpress/autop": "4.19.0",
|
||||
"@wordpress/blob": "4.19.0",
|
||||
"@wordpress/block-directory": "5.19.0",
|
||||
"@wordpress/block-editor": "14.14.0",
|
||||
"@wordpress/block-library": "9.19.0",
|
||||
"@wordpress/block-serialization-default-parser": "5.19.0",
|
||||
"@wordpress/blocks": "14.8.0",
|
||||
"@wordpress/commands": "1.19.0",
|
||||
"@wordpress/components": "29.5.0",
|
||||
"@wordpress/compose": "7.19.0",
|
||||
"@wordpress/core-commands": "1.19.0",
|
||||
"@wordpress/core-data": "7.19.0",
|
||||
"@wordpress/customize-widgets": "5.19.0",
|
||||
"@wordpress/data": "10.19.0",
|
||||
"@wordpress/data-controls": "4.19.0",
|
||||
"@wordpress/dataviews": "4.15.0",
|
||||
"@wordpress/date": "5.19.0",
|
||||
"@wordpress/deprecated": "4.19.0",
|
||||
"@wordpress/dom": "4.19.0",
|
||||
"@wordpress/dom-ready": "4.19.0",
|
||||
"@wordpress/edit-post": "8.19.0",
|
||||
"@wordpress/edit-site": "6.19.0",
|
||||
"@wordpress/edit-widgets": "6.19.0",
|
||||
"@wordpress/editor": "14.19.0",
|
||||
"@wordpress/element": "6.19.0",
|
||||
"@wordpress/escape-html": "3.19.0",
|
||||
"@wordpress/fields": "0.11.0",
|
||||
"@wordpress/format-library": "5.19.0",
|
||||
"@wordpress/hooks": "4.19.0",
|
||||
"@wordpress/html-entities": "4.19.0",
|
||||
"@wordpress/i18n": "5.19.0",
|
||||
"@wordpress/icons": "10.19.0",
|
||||
"@wordpress/interactivity": "6.19.0",
|
||||
"@wordpress/interactivity-router": "2.19.0",
|
||||
"@wordpress/interface": "9.4.0",
|
||||
"@wordpress/is-shallow-equal": "5.19.0",
|
||||
"@wordpress/keyboard-shortcuts": "5.19.0",
|
||||
"@wordpress/keycodes": "4.19.0",
|
||||
"@wordpress/list-reusable-blocks": "5.19.0",
|
||||
"@wordpress/media-utils": "5.19.0",
|
||||
"@wordpress/notices": "5.19.0",
|
||||
"@wordpress/nux": "9.19.0",
|
||||
"@wordpress/patterns": "2.19.0",
|
||||
"@wordpress/plugins": "7.19.0",
|
||||
"@wordpress/preferences": "4.19.0",
|
||||
"@wordpress/preferences-persistence": "2.19.0",
|
||||
"@wordpress/primitives": "4.19.0",
|
||||
"@wordpress/priority-queue": "3.19.0",
|
||||
"@wordpress/private-apis": "1.19.0",
|
||||
"@wordpress/redux-routine": "5.19.0",
|
||||
"@wordpress/reusable-blocks": "5.19.0",
|
||||
"@wordpress/rich-text": "7.19.0",
|
||||
"@wordpress/router": "1.19.0",
|
||||
"@wordpress/server-side-render": "5.19.0",
|
||||
"@wordpress/shortcode": "4.19.0",
|
||||
"@wordpress/style-engine": "2.19.0",
|
||||
"@wordpress/sync": "1.19.0",
|
||||
"@wordpress/token-list": "3.19.0",
|
||||
"@wordpress/undo-manager": "1.19.0",
|
||||
"@wordpress/upload-media": "0.4.0",
|
||||
"@wordpress/url": "4.19.0",
|
||||
"@wordpress/viewport": "6.19.0",
|
||||
"@wordpress/warning": "3.19.0",
|
||||
"@wordpress/widgets": "4.19.0",
|
||||
"@wordpress/wordcount": "4.19.0",
|
||||
"backbone": "1.6.0",
|
||||
"clipboard": "2.0.11",
|
||||
"core-js-url-browser": "3.6.4",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<?php return array('interactivity/index.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a525209c03a87e74ec45', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b1a15c164ed27698ef82', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => '0f01f519e3dce3ad547a', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '8f7f3c854009ae207c29', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity', 'wp-polyfill'), 'version' => '8ff192874fc8910a284c', 'type' => 'module'), 'block-library/query/view.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/interactivity-router', 'import' => 'dynamic')), 'version' => '0661ecffc048a34462c0', 'type' => 'module'), 'block-library/search/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '2a73400a693958f604de', 'type' => 'module'));
|
||||
<?php return array('interactivity/index.min.js' => array('dependencies' => array(), 'version' => '55aebb6e0a16726baffb', 'type' => 'module'), 'interactivity/debug.min.js' => array('dependencies' => array(), 'version' => 'a5c279b9ad67f2a4e6e2', 'type' => 'module'), 'interactivity-router/index.min.js' => array('dependencies' => array('@wordpress/interactivity', array('id' => '@wordpress/a11y', 'import' => 'dynamic')), 'version' => 'dc4a227f142d2e68ef83', 'type' => 'module'), 'a11y/index.min.js' => array('dependencies' => array(), 'version' => 'b7d06936b8bc23cff2ad', 'type' => 'module'), 'block-library/file/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'fdc2f6842e015af83140', 'type' => 'module'), 'block-library/form/view.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'baaf25398238b4f2a821', 'type' => 'module'), 'block-library/image/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => 'e38a2f910342023b9d19', 'type' => 'module'), 'block-library/navigation/view.min.js' => array('dependencies' => array('@wordpress/interactivity'), 'version' => '61572d447d60c0aa5240', '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' => '208bf143e4074549fa89', 'type' => 'module'));
|
||||
|
@ -54,6 +54,15 @@
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
"link": true
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
}
|
||||
|
@ -87,25 +87,8 @@ function render_block_core_block( $attributes ) {
|
||||
add_filter( 'render_block_context', $filter_block_context, 1 );
|
||||
}
|
||||
|
||||
$ignored_hooked_blocks = get_post_meta( $attributes['ref'], '_wp_ignored_hooked_blocks', true );
|
||||
if ( ! empty( $ignored_hooked_blocks ) ) {
|
||||
$ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );
|
||||
$attributes['metadata'] = array(
|
||||
'ignoredHookedBlocks' => $ignored_hooked_blocks,
|
||||
);
|
||||
}
|
||||
|
||||
// Wrap in "Block" block so the Block Hooks algorithm can insert blocks
|
||||
// that are hooked as first or last child of `core/block`.
|
||||
$content = get_comment_delimited_block_content(
|
||||
'core/block',
|
||||
$attributes,
|
||||
$content
|
||||
);
|
||||
// Apply Block Hooks.
|
||||
$content = apply_block_hooks_to_content( $content, $reusable_block );
|
||||
// Remove block wrapper.
|
||||
$content = remove_serialized_parent_block( $content );
|
||||
$content = apply_block_hooks_to_content_from_post_object( $content, $reusable_block );
|
||||
|
||||
$content = do_blocks( $content );
|
||||
unset( $seen_refs[ $attributes['ref'] ] );
|
||||
|
@ -55,6 +55,15 @@
|
||||
'fontSize' => true
|
||||
)
|
||||
),
|
||||
'color' => array(
|
||||
'gradients' => true,
|
||||
'link' => true,
|
||||
'__experimentalDefaultControls' => array(
|
||||
'background' => true,
|
||||
'text' => true,
|
||||
'link' => true
|
||||
)
|
||||
),
|
||||
'interactivity' => array(
|
||||
'clientNavigation' => true
|
||||
)
|
||||
@ -610,6 +619,15 @@
|
||||
'fontSize' => true
|
||||
)
|
||||
),
|
||||
'color' => array(
|
||||
'gradients' => true,
|
||||
'link' => true,
|
||||
'__experimentalDefaultControls' => array(
|
||||
'background' => true,
|
||||
'text' => true,
|
||||
'link' => true
|
||||
)
|
||||
),
|
||||
'interactivity' => array(
|
||||
'clientNavigation' => true
|
||||
),
|
||||
@ -5922,6 +5940,20 @@
|
||||
'interactivity' => array(
|
||||
'clientNavigation' => true
|
||||
),
|
||||
'__experimentalBorder' => array(
|
||||
'radius' => true,
|
||||
'color' => true,
|
||||
'width' => true,
|
||||
'style' => true
|
||||
),
|
||||
'spacing' => array(
|
||||
'margin' => true,
|
||||
'padding' => true,
|
||||
'__experimentalDefaultControls' => array(
|
||||
'padding' => false,
|
||||
'margin' => false
|
||||
)
|
||||
),
|
||||
'color' => array(
|
||||
'background' => true,
|
||||
'text' => true,
|
||||
|
@ -66,6 +66,15 @@
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
"link": true
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
|
@ -241,11 +241,12 @@ class WP_Navigation_Block_Renderer {
|
||||
// it encounters whitespace. This code strips it.
|
||||
$blocks = block_core_navigation_filter_out_empty_blocks( $parsed_blocks );
|
||||
|
||||
// Run Block Hooks algorithm to inject hooked blocks.
|
||||
$markup = block_core_navigation_insert_hooked_blocks( $blocks, $navigation_post );
|
||||
$root_nav_block = parse_blocks( $markup )[0];
|
||||
|
||||
$blocks = isset( $root_nav_block['innerBlocks'] ) ? $root_nav_block['innerBlocks'] : $blocks;
|
||||
// Re-serialize, and run Block Hooks algorithm to inject hooked blocks.
|
||||
// TODO: See if we can move the apply_block_hooks_to_content_from_post_object() call
|
||||
// before the parse_blocks() call further above, to avoid the extra serialization/parsing.
|
||||
$markup = serialize_blocks( $blocks );
|
||||
$markup = apply_block_hooks_to_content_from_post_object( $markup, $navigation_post );
|
||||
$blocks = parse_blocks( $markup );
|
||||
|
||||
// TODO - this uses the full navigation block attributes for the
|
||||
// context which could be refined.
|
||||
@ -1077,12 +1078,11 @@ function block_core_navigation_get_fallback_blocks() {
|
||||
|
||||
// Run Block Hooks algorithm to inject hooked blocks.
|
||||
// We have to run it here because we need the post ID of the Navigation block to track ignored hooked blocks.
|
||||
$markup = block_core_navigation_insert_hooked_blocks( $fallback_blocks, $navigation_post );
|
||||
$blocks = parse_blocks( $markup );
|
||||
|
||||
if ( isset( $blocks[0]['innerBlocks'] ) ) {
|
||||
$fallback_blocks = $blocks[0]['innerBlocks'];
|
||||
}
|
||||
// TODO: See if we can move the apply_block_hooks_to_content_from_post_object() call
|
||||
// before the parse_blocks() call further above, to avoid the extra serialization/parsing.
|
||||
$markup = serialize_blocks( $fallback_blocks );
|
||||
$markup = apply_block_hooks_to_content_from_post_object( $markup, $navigation_post );
|
||||
$fallback_blocks = parse_blocks( $markup );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1436,61 +1436,3 @@ function block_core_navigation_get_most_recently_published_navigation() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mock a parsed block for the Navigation block given its inner blocks and the `wp_navigation` post object.
|
||||
* The `wp_navigation` post's `_wp_ignored_hooked_blocks` meta is queried to add the `metadata.ignoredHookedBlocks` attribute.
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @param array $inner_blocks Parsed inner blocks of a Navigation block.
|
||||
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
|
||||
*
|
||||
* @return array the normalized parsed blocks.
|
||||
*/
|
||||
function block_core_navigation_mock_parsed_block( $inner_blocks, $post ) {
|
||||
$attributes = array();
|
||||
|
||||
if ( isset( $post->ID ) ) {
|
||||
$ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
|
||||
if ( ! empty( $ignored_hooked_blocks ) ) {
|
||||
$ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );
|
||||
$attributes['metadata'] = array(
|
||||
'ignoredHookedBlocks' => $ignored_hooked_blocks,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$mock_anchor_parent_block = array(
|
||||
'blockName' => 'core/navigation',
|
||||
'attrs' => $attributes,
|
||||
'innerBlocks' => $inner_blocks,
|
||||
'innerContent' => array_fill( 0, count( $inner_blocks ), null ),
|
||||
);
|
||||
|
||||
return $mock_anchor_parent_block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert hooked blocks into a Navigation block.
|
||||
*
|
||||
* Given a Navigation block's inner blocks and its corresponding `wp_navigation` post object,
|
||||
* this function inserts hooked blocks into it, and returns the serialized inner blocks in a
|
||||
* mock Navigation block wrapper.
|
||||
*
|
||||
* If there are any hooked blocks that need to be inserted as the Navigation block's first or last
|
||||
* children, the `wp_navigation` post's `_wp_ignored_hooked_blocks` meta is checked to see if any
|
||||
* of those hooked blocks should be exempted from insertion.
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @param array $inner_blocks Parsed inner blocks of a Navigation block.
|
||||
* @param WP_Post $post `wp_navigation` post object corresponding to the block.
|
||||
* @return string Serialized inner blocks in mock Navigation block wrapper, with hooked blocks inserted, if any.
|
||||
*/
|
||||
function block_core_navigation_insert_hooked_blocks( $inner_blocks, $post ) {
|
||||
$mock_navigation_block = block_core_navigation_mock_parsed_block( $inner_blocks, $post );
|
||||
|
||||
$mock_navigation_block_markup = serialize_block( $mock_navigation_block );
|
||||
return apply_block_hooks_to_content( $mock_navigation_block_markup, $post, 'insert_hooked_blocks' );
|
||||
}
|
||||
|
@ -46,33 +46,10 @@ function render_block_core_post_content( $attributes, $content, $block ) {
|
||||
$content .= wp_link_pages( array( 'echo' => 0 ) );
|
||||
}
|
||||
|
||||
$ignored_hooked_blocks = get_post_meta( $post_id, '_wp_ignored_hooked_blocks', true );
|
||||
if ( ! empty( $ignored_hooked_blocks ) ) {
|
||||
$ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );
|
||||
$attributes['metadata'] = array(
|
||||
'ignoredHookedBlocks' => $ignored_hooked_blocks,
|
||||
);
|
||||
}
|
||||
|
||||
// Wrap in Post Content block so the Block Hooks algorithm can insert blocks
|
||||
// that are hooked as first or last child of `core/post-content`.
|
||||
$content = get_comment_delimited_block_content(
|
||||
'core/post-content',
|
||||
$attributes,
|
||||
$content
|
||||
);
|
||||
|
||||
// We need to remove the `core/post-content` block wrapper after the Block Hooks algorithm,
|
||||
// but before `do_blocks` runs, as it would otherwise attempt to render the same block again --
|
||||
// thus recursing infinitely.
|
||||
add_filter( 'the_content', 'remove_serialized_parent_block', 8 );
|
||||
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
|
||||
unset( $seen_ids[ $post_id ] );
|
||||
|
||||
remove_filter( 'the_content', 'remove_serialized_parent_block', 8 );
|
||||
|
||||
if ( empty( $content ) ) {
|
||||
return '';
|
||||
}
|
||||
|
@ -10,6 +10,8 @@
|
||||
*
|
||||
* @since 6.8.0
|
||||
*
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @param array $attributes Block attributes.
|
||||
* @param string $content Block default content.
|
||||
* @param WP_Block $block Block instance.
|
||||
|
@ -47,6 +47,20 @@
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"radius": true,
|
||||
"color": true,
|
||||
"width": true,
|
||||
"style": true
|
||||
},
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"padding": false,
|
||||
"margin": false
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"background": true,
|
||||
"text": true,
|
||||
|
@ -169,6 +169,10 @@ function block_core_social_link_services( $service = '', $field = '' ) {
|
||||
'name' => 'DeviantArt',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"></path></svg>',
|
||||
),
|
||||
'discord' => array(
|
||||
'name' => 'Discord',
|
||||
'icon' => '<svg width="24" height="24" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"/></svg>',
|
||||
),
|
||||
'dribbble' => array(
|
||||
'name' => 'Dribbble',
|
||||
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"></path></svg>',
|
||||
|
@ -70,7 +70,9 @@ function render_block_core_template_part( $attributes ) {
|
||||
if ( 0 === validate_file( $attributes['slug'] ) ) {
|
||||
$block_template = get_block_file_template( $template_part_id, 'wp_template_part' );
|
||||
|
||||
$content = $block_template->content;
|
||||
if ( isset( $block_template->content ) ) {
|
||||
$content = $block_template->content;
|
||||
}
|
||||
if ( isset( $block_template->area ) ) {
|
||||
$area = $block_template->area;
|
||||
}
|
||||
|
@ -2068,9 +2068,6 @@ HTML
|
||||
public function test_wp_add_inline_script_before_after_concat_with_core_dependency() {
|
||||
global $wp_scripts, $wp_version;
|
||||
|
||||
// See: https://github.com/WordPress/gutenberg/pull/69070.
|
||||
$this->markTestSkipped( 'Temporarily skipping to sync while wp-polyfill is removed.' );
|
||||
|
||||
wp_default_scripts( $wp_scripts );
|
||||
wp_default_packages( $wp_scripts );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user