- Timestamp:
- 11/20/2024 01:32:57 PM (3 months ago)
- Location:
- branches/6.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
-
branches/6.7/src/wp-includes/class-wp-textdomain-registry.php
r58591 r59433 154 154 */ 155 155 public function set_custom_path( $domain, $path ) { 156 // If just-in-time loading was triggered before, reset the entry so it can be tried again. 157 158 if ( isset( $this->all[ $domain ] ) ) { 159 $this->all[ $domain ] = array_filter( $this->all[ $domain ] ); 160 } 161 162 if ( empty( $this->current[ $domain ] ) ) { 163 unset( $this->current[ $domain ] ); 164 } 165 156 166 $this->custom_paths[ $domain ] = rtrim( $path, '/' ); 157 167 } … … 337 347 * using load_plugin_textdomain/load_theme_textdomain, use that one. 338 348 */ 339 if ( 'en_US' !== $locale &&isset( $this->custom_paths[ $domain ] ) ) {349 if ( isset( $this->custom_paths[ $domain ] ) ) { 340 350 $fallback_location = rtrim( $this->custom_paths[ $domain ], '/' ) . '/'; 341 351 $this->set( $domain, $locale, $fallback_location );
Note: See TracChangeset
for help on using the changeset viewer.