Skip to content

Commit

Permalink
Remove references to static block variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed Mar 27, 2024
1 parent 82f570a commit 5b3ff92
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
10 changes: 0 additions & 10 deletions my-template/files/block/index.js.mustache
Expand Up @@ -18,9 +18,6 @@ import './style.scss';
* Internal dependencies
*/
import Edit from './edit';
{{#isStaticVariant}}
import save from './save';
{{/isStaticVariant}}
import metadata from './block.json';

/**
Expand All @@ -33,11 +30,4 @@ registerBlockType( metadata.name, {
* @see ./edit.js
*/
edit: Edit,
{{#isStaticVariant}}

/**
* @see ./save.js
*/
save,
{{/isStaticVariant}}
} );
4 changes: 1 addition & 3 deletions my-template/files/block/render.php.mustache
@@ -1,4 +1,3 @@
{{^isStaticVariant}}
<?php
/**
* PHP file to use when rendering the block type on the server to show on the front end.
Expand Down Expand Up @@ -33,5 +32,4 @@ $context = array();
<p <?php echo wp_kses_data( get_block_wrapper_attributes() ); ?>>
<?php esc_html_e( '{{title}} – hello from a dynamic block!', '{{textdomain}}' ); ?>
</p>
{{/isDynamicVariant}}
{{/isStaticVariant}}
{{/isDynamicVariant}}
23 changes: 0 additions & 23 deletions my-template/files/block/save.js.mustache

This file was deleted.

0 comments on commit 5b3ff92

Please sign in to comment.