Changeset 54351
- Timestamp:
- 09/28/2022 10:17:38 PM (2 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-dependency.php
r54133 r54351 127 127 * @return bool False if $domain is not a string, true otherwise. 128 128 */ 129 public function set_translations( $domain, $path = null) {129 public function set_translations( $domain, $path = '' ) { 130 130 if ( ! is_string( $domain ) ) { 131 131 return false; -
trunk/src/wp-includes/class-wp-scripts.php
r54254 r54351 574 574 * @return bool True if the text domain was registered, false if not. 575 575 */ 576 public function set_translations( $handle, $domain = 'default', $path = null) {576 public function set_translations( $handle, $domain = 'default', $path = '' ) { 577 577 if ( ! isset( $this->registered[ $handle ] ) ) { 578 578 return false; … … 606 606 607 607 $domain = $this->registered[ $handle ]->textdomain; 608 $path = $this->registered[ $handle ]->translations_path; 608 $path = ''; 609 610 if ( isset( $this->registered[ $handle ]->translations_path ) ) { 611 $path = $this->registered[ $handle ]->translations_path; 612 } 609 613 610 614 $json_translations = load_script_textdomain( $handle, $domain, $path ); -
trunk/src/wp-includes/functions.wp-scripts.php
r53060 r54351 238 238 * @return bool True if the text domain was successfully localized, false otherwise. 239 239 */ 240 function wp_set_script_translations( $handle, $domain = 'default', $path = null) {240 function wp_set_script_translations( $handle, $domain = 'default', $path = '' ) { 241 241 global $wp_scripts; 242 242 -
trunk/src/wp-includes/l10n.php
r54349 r54351 1066 1066 } 1067 1067 1068 if ( is_string( $path ) ) { 1069 $path = untrailingslashit( $path ); 1070 } 1071 1068 $path = untrailingslashit( $path ); 1072 1069 $locale = determine_locale(); 1073 1070
Note: See TracChangeset
for help on using the changeset viewer.