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

Commit

Permalink
grammar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir committed Nov 4, 2021
1 parent 893baa1 commit e2e29a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ public function update_block_settings_dependencies() {
// Show a warning.
$error_handle = 'wc-settings-dep-in-header';
$used_deps = implode( ', ', array_intersect( $known_packages, $script->deps ) );
$error_message = "scripts that has a depenency on [ {$used_deps} ] must be loaded in the footer, {$handle} was loaded in the header but was moved to the footer. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059";

$error_message = "Scripts that have a dependency on [$used_deps] must be loaded in the footer, {$handle} was registered to load in the header, but has been switched to load in the footer instead. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059";
// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter,WordPress.WP.EnqueuedResourceParameters.MissingVersion
wp_register_script( $error_handle, '' );
wp_enqueue_script( $error_handle );
Expand Down

0 comments on commit e2e29a4

Please sign in to comment.