Changeset 54351 for trunk/src/wp-includes/class-wp-scripts.php
- Timestamp:
- 09/28/2022 10:17:38 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 );
Note: See TracChangeset
for help on using the changeset viewer.