Changeset 54682 for branches/6.1/src/wp-includes/l10n.php
- Timestamp:
- 10/24/2022 06:35:30 PM (2 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/l10n.php
r54351 r54682 935 935 } 936 936 937 $wp_textdomain_registry->set ( $domain, $locale, $path );937 $wp_textdomain_registry->set_custom_path( $domain, $path ); 938 938 939 939 return load_textdomain( $domain, $path . '/' . $mofile, $locale ); … … 969 969 $path = WPMU_PLUGIN_DIR . '/' . ltrim( $mu_plugin_rel_path, '/' ); 970 970 971 $wp_textdomain_registry->set ( $domain, $locale, $path );971 $wp_textdomain_registry->set_custom_path( $domain, $path ); 972 972 973 973 return load_textdomain( $domain, $path . '/' . $mofile, $locale ); … … 1017 1017 } 1018 1018 1019 $wp_textdomain_registry->set ( $domain, $locale, $path );1019 $wp_textdomain_registry->set_custom_path( $domain, $path ); 1020 1020 1021 1021 return load_textdomain( $domain, $path . '/' . $locale . '.mo', $locale ); … … 1266 1266 } 1267 1267 1268 if ( $wp_textdomain_registry->has( $domain ) && ! $wp_textdomain_registry->get_current( $domain ) ) {1268 if ( ! $wp_textdomain_registry->has( $domain ) ) { 1269 1269 return false; 1270 1270 }
Note: See TracChangeset
for help on using the changeset viewer.