Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Rename the files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nefeline committed Jul 27, 2023
1 parent f42b460 commit c0330ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/webpack-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const entries = {
'add-to-cart-form':
'./assets/js/atomic/blocks/product-elements/add-to-cart-form/index.tsx',
...getBlockEntries( '{index,block,frontend}.{t,j}s{,x}' ),
'wc-classic-template-revert-button':
'wc-blocks-classic-template-revert-button-style':
'./assets/js/templates/revert-button/style.scss',
},
core: {
Expand Down Expand Up @@ -173,7 +173,7 @@ const entries = {
'./assets/js/extensions/shipping-methods/pickup-location/index.js',
},
editor: {
'wc-classic-template-revert-button':
'wc-blocks-classic-template-revert-button':
'./assets/js/templates/revert-button/index.tsx',
},
};
Expand Down
4 changes: 2 additions & 2 deletions src/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function register_assets() {
* Register and enqueue assets for exclusive usage within the Site Editor.
*/
public function register_and_enqueue_site_editor_assets() {
$this->api->register_script( 'wc-blocks-classic-template-revert-button', 'build/wc-classic-template-revert-button.js', [ 'wp-edit-site', 'wp-data', 'wp-core-data', 'wp-element', 'wp-components', 'wp-i18n', 'wp-block-editor', 'wp-blocks' ] );
$this->api->register_style( 'wc-blocks-classic-template-revert-button-style', 'build/wc-classic-template-revert-button.css' );
$this->api->register_script( 'wc-blocks-classic-template-revert-button', 'build/wc-blocks-classic-template-revert-button.js', [ 'wp-edit-site', 'wp-data', 'wp-core-data', 'wp-element', 'wp-components', 'wp-i18n', 'wp-block-editor', 'wp-blocks' ] );
$this->api->register_style( 'wc-blocks-classic-template-revert-button-style', 'build/wc-blocks-classic-template-revert-button-style.css' );

$current_screen = get_current_screen();
if ( $current_screen instanceof \WP_Screen && 'site-editor' === $current_screen->base ) {
Expand Down

0 comments on commit c0330ce

Please sign in to comment.