Skip to content

Commit 925f49b

Browse files
committed
Improve message consistency
1 parent b52c39c commit 925f49b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/class-wp-script-modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ private function sort_item_dependencies( string $id, array $import_types, array
740740
get_class( $this ) . '::register',
741741
sprintf(
742742
/* translators: 1: Script module ID, 2: Comma-separated list of missing dependency IDs. */
743-
__( 'The script module "%1$s" was enqueued with dependencies that are not registered: %2$s.' ),
743+
__( 'The script module with the ID "%1$s" was enqueued with dependencies that are not registered: %2$s.' ),
744744
$id,
745745
implode( ', ', $missing_dependencies )
746746
),

tests/phpunit/tests/script-modules/wpScriptModules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ public function test_missing_script_module_dependency_triggers_incorrect_usage()
23362336

23372337
// Assert the message mentions the missing dependency handle.
23382338
$this->assertStringContainsString(
2339-
'The script module "main-module" was enqueued with dependencies that are not registered: missing-mod-dep',
2339+
'The script module with the ID "main-module" was enqueued with dependencies that are not registered: missing-mod-dep',
23402340
$this->caught_doing_it_wrong[ $expected_incorrect_usage ]
23412341
);
23422342
}

0 commit comments

Comments
 (0)