Changeset 44395 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 01/04/2019 09:11:01 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/l10n.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r44318 r44395 899 899 * @since 5.0.0 900 900 * @since 5.0.2 Uses load_script_translations() to load translation data. 901 * @since 5.1.0 The `$domain` parameter was made optional. 901 902 * 902 903 * @see WP_Scripts::set_translations() 903 904 * 904 905 * @param string $handle Name of the script to register a translation domain to. 905 * @param string $domain The text domain.906 * @param string $domain Optional. Text domain. Default 'default'. 906 907 * @param string $path Optional. The full file path to the directory containing translation files. 907 908 * … … 909 910 * in JSON encoding otherwise. 910 911 */ 911 function load_script_textdomain( $handle, $domain , $path = null ) {912 function load_script_textdomain( $handle, $domain = 'default', $path = null ) { 912 913 $wp_scripts = wp_scripts(); 913 914
Note: See TracChangeset
for help on using the changeset viewer.