wide test
singular.php, removed
<!-- wp:separator {"className":"is-style-new-line"} -->
<hr class="wp-block-separator has-alpha-channel-opacity is-style-new-line"/>
<!-- /wp:separator -->
<!-- wp:paragraph {"metadata":{"bindings":{"content":{"source":"projectslug/fun-stuff","args":{"key":"hello"}}}},"fontSize":"extra-large"} -->
<p class="has-extra-large-font-size">Displays a random lyric from the Hello Dolly plugin if installed.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><a href="https://developer.wordpress.org/news/2024/03/06/introducing-block-bindings-part-2-working-with-custom-binding-sources/">ブロック バインディングの紹介、パート 2: カスタム バインディング ソースの操作 – WordPress 開発者ブログ</a></p>
<!-- /wp:paragraph -->
<!-- wp:code {"className":"is-style-dark"} -->
<pre class="wp-block-code is-style-dark"><code>register_block_bindings_source( 'projectslug/fun-stuff', array(<br> 'label' => __( 'Fun Stuff', 'projectslug' ),<br> 'get_value_callback' => 'projectslug_fun_bindings'<br>));<br><br>function projectslug_fun_bindings( $source_args ) {<br> if ( ! isset( $source_args['key'] )) {<br> return null;<br> }<br><br> if ( 'hello' === $source_args['key'] && function_exists('hello_dolly_get_lyric')) {<br> return esc_html(sprintf(<br> // Translators: %s is a lyric from the Hello Dolly plugin.<br> __(' %s', 'projectslug'),<br> hello_dolly_get_lyric()<br> ));<br> }<br><br> return null;<br>}</code></pre>
<!-- /wp:code -->
<!-- wp:code {"className":"is-style-dark"} -->
<pre class="wp-block-code is-style-dark"><code><!-- wp:paragraph {<br> "metadata":{<br> "bindings":{<br> "content":{<br> "source":"projectslug/fun-stuff",<br> "args":{<br> "key":"hello"<br> }<br> }<br> }<br> }<br>} --><br><p>Displays a random lyric from the Hello Dolly plugin if installed.</p><br><!-- /wp:paragraph --></code></pre>
<!-- /wp:code -->
<!-- wp:paragraph -->
<p>core/post-meta needs gutenberg</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>今のところ、画像のバインドはうまくいっていない</p>
<!-- /wp:paragraph -->
<!-- wp:image {"metadata":{"bindings":{"url":{"source":"core/post-meta","args":{"key":"emulsion_image_url"}},"alt":{"source":"core/post-meta","args":{"key":"emulsion_image_alt"}}}}} -->
<figure class="wp-block-image"><img alt="emulsion_image_alt"/></figure>
<!-- /wp:image -->
<!-- wp:code {"className":"is-style-dark"} -->
<pre class="wp-block-code is-style-dark"><code><!-- wp:image {"metadata":{"bindings":{"url":{"source":"core/post-meta","args":{"key":"emulsion_image_url"}},"alt":{"source":"core/post-meta","args":{"key":"emulsion_image_alt"}}}}} --><br><figure class="wp-block-image"><img alt="emulsion_image_alt"/></figure><br><!-- /wp:image --></code></pre>
<!-- /wp:code -->
[11-Apr-2024 01:17:47 UTC] PHP Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($content) must be of type string, null given, called in /virtual/tenman/public_html/wp-37/wp-includes/class-wp-hook.php on line 326 and defined in /virtual/tenman/public_html/wp-37/wp-includes/interactivity-api/interactivity-api.php:46
Stack trace:
#0 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-hook.php(326): {closure}()
#1 /virtual/tenman/public_html/wp-37/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(525): apply_filters()
#3 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1705): WP_Block->render()
#4 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1743): render_block()
#5 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-hook.php(324): do_blocks()
#6 /virtual/tenman/public_html/wp-37/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#7 /virtual/tenman/public_html/wp-37/wp-content/plugins/gutenberg/build/block-library/blocks/post-content.php(50): apply_filters()
#8 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(463): gutenberg_render_block_core_post_content()
#9 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(443): WP_Block->render()
#10 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1705): WP_Block->render()
#11 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1743): render_block()
#12 /virtual/tenman/public_html/wp-37/wp-content/plugins/gutenberg/build/block-library/blocks/template-part.php(154): do_blocks()
#13 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(463): gutenberg_render_block_core_template_part()
#14 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(443): WP_Block->render()
#15 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(443): WP_Block->render()
#16 /virtual/tenman/public_html/wp-37/wp-includes/class-wp-block.php(443): WP_Block->render()
#17 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1705): WP_Block->render()
#18 /virtual/tenman/public_html/wp-37/wp-includes/blocks.php(1743): render_block()
#19 /virtual/tenman/public_html/wp-37/wp-includes/block-template.php(260): do_blocks()
#20 /virtual/tenman/public_html/wp-37/wp-includes/template-canvas.php(12): get_the_block_template_html()
#21 /virtual/tenman/public_html/wp-37/wp-includes/template-loader.php(106): include('...')
#22 /virtual/tenman/public_html/wp-37/wp-blog-header.php(19): require_once('...')
#23 /virtual/tenman/public_html/wp-37/index.php(17): require('...')
#24 {main}
thrown in /virtual/tenman/public_html/wp-37/wp-includes/interactivity-api/interactivity-api.php on line 46
[11-Apr-2024 01:17:50 UTC] PHP Deprecated: 関数 gutenberg_block_core_navigation_parse_blocks_from_menu_items は、バージョン 6.3.0 から非推奨になりました ! 代わりに WP_Navigation_Fallback::parse_blocks_from_menu_items を使用してください。 in /virtual/tenman/public_html/wp-37/wp-includes/functions.php on line 6078
[11-Apr-2024 01:17:50 UTC] PHP Deprecated: 関数 gutenberg_block_core_navigation_parse_blocks_from_menu_items は、バージョン 6.3.0 から非推奨になりました ! 代わりに WP_Navigation_Fallback::parse_blocks_from_menu_items を使用してください。 in /virtual/tenman/public_html/wp-37/wp-includes/functions.php on line 6078
[11-Apr-2024 01:17:50 UTC] PHP Deprecated: 関数 gutenberg_block_core_navigation_parse_blocks_from_menu_items は、バージョン 6.3.0 から非推奨になりました ! 代わりに WP_Navigation_Fallback::parse_blocks_from_menu_items を使用してください。 in /virtual/tenman/public_html/wp-37/wp-includes/functions.php on line 6078