Skip to content

Commit eea1271

Browse files
committed
Docs: Update @since tags to 7.0.0 for script module translation APIs.
See #65015.
1 parent 9956417 commit eea1271

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class WP_Script_Modules {
8787
* Each entry contains 'domain' and 'path' keys for the text domain
8888
* and the path to translation files respectively.
8989
*
90-
* @since x.y.z
90+
* @since 7.0.0
9191
* @var array<string, array{domain: string, path: string}>
9292
*/
9393
private $translations = array();
@@ -346,7 +346,7 @@ public function deregister( string $id ) {
346346
* The translations will be loaded and output as inline scripts before
347347
* the script modules are printed, calling `wp.i18n.setLocaleData()`.
348348
*
349-
* @since x.y.z
349+
* @since 7.0.0
350350
*
351351
* @param string $id The identifier of the script module.
352352
* @param string $domain Optional. Text domain. Default 'default'.
@@ -373,7 +373,7 @@ public function set_translations( string $id, string $domain = 'default', string
373373
* the translated strings for each script module. This must run before
374374
* the script modules execute.
375375
*
376-
* @since x.y.z
376+
* @since 7.0.0
377377
*/
378378
public function print_script_module_translations(): void {
379379
// Collect all module IDs that will be on the page (enqueued + their dependencies).
@@ -935,7 +935,7 @@ private function sort_item_dependencies( string $id, array $import_types, array
935935
* This is used by {@see load_script_module_textdomain()} to determine
936936
* the relative path for loading translation files.
937937
*
938-
* @since x.y.z
938+
* @since 7.0.0
939939
*
940940
* @param string $id The script module identifier.
941941
* @return string|false The script module source URL, or false if not registered.

src/wp-includes/l10n.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ function load_script_textdomain( $handle, $domain = 'default', $path = '' ) {
12861286
* Works like {@see load_script_textdomain()} but for script modules registered
12871287
* via {@see wp_register_script_module()}.
12881288
*
1289-
* @since x.y.z
1289+
* @since 7.0.0
12901290
*
12911291
* @param string $id The script module identifier.
12921292
* @param string $domain Optional. Text domain. Default 'default'.
@@ -1389,7 +1389,7 @@ function load_script_module_textdomain( $id, $domain = 'default', $path = '' ) {
13891389
/**
13901390
* Filters the relative path of script module source used for finding translation files.
13911391
*
1392-
* @since x.y.z
1392+
* @since 7.0.0
13931393
*
13941394
* @param string|false $relative The relative path of the script module source. False if it could not be determined.
13951395
* @param string $src The full source URL of the script module.

src/wp-includes/script-modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function wp_deregister_script_module( string $id ) {
144144
* Works similar to {@see wp_set_script_translations()} but for script modules
145145
* registered via {@see wp_register_script_module()}.
146146
*
147-
* @since x.y.z
147+
* @since 7.0.0
148148
*
149149
* @see WP_Script_Modules::set_translations()
150150
*

0 commit comments

Comments
 (0)