Changeset 60728 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 09/11/2025 10:11:40 AM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/l10n.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r59719 r60728 1135 1135 * @see WP_Scripts::set_translations() 1136 1136 * 1137 * @global WP_Textdomain_Registry $wp_textdomain_registry WordPress Textdomain Registry. 1138 * 1137 1139 * @param string $handle Name of the script to register a translation domain to. 1138 1140 * @param string $domain Optional. Text domain. Default 'default'. … … 1142 1144 */ 1143 1145 function load_script_textdomain( $handle, $domain = 'default', $path = '' ) { 1146 /** @var WP_Textdomain_Registry $wp_textdomain_registry */ 1147 global $wp_textdomain_registry; 1148 1144 1149 $wp_scripts = wp_scripts(); 1145 1150 … … 1148 1153 } 1149 1154 1150 $path = untrailingslashit( $path );1151 1155 $locale = determine_locale(); 1156 1157 if ( ! $path ) { 1158 $path = $wp_textdomain_registry->get( $domain, $locale ); 1159 } 1160 1161 $path = untrailingslashit( $path ); 1152 1162 1153 1163 // If a path was given and the handle file exists simply return it.
Note: See TracChangeset
for help on using the changeset viewer.