Changeset 57290 for trunk/src/wp-includes/class-wp-textdomain-registry.php
- Timestamp:
- 01/16/2024 12:10:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-textdomain-registry.php
r57287 r57290 162 162 */ 163 163 public function get_language_files_from_path( $path ) { 164 $path = trailingslashit( $path );164 $path = rtrim( $path, '/' ) . '/'; 165 165 166 166 /** … … 238 238 switch ( $type ) { 239 239 case 'plugin': 240 wp_cache_delete( 'cached_mo_files_' . md5( trailingslashit( WP_LANG_DIR ) . '/plugins/' ), 'translations' );240 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR . '/plugins' ), 'translations' ); 241 241 break; 242 242 case 'theme': 243 wp_cache_delete( 'cached_mo_files_' . md5( trailingslashit( WP_LANG_DIR ) . '/themes/' ), 'translations' );243 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR . '/themes' ), 'translations' ); 244 244 break; 245 245 default: 246 wp_cache_delete( 'cached_mo_files_' . md5( trailingslashit( WP_LANG_DIR )), 'translations' );246 wp_cache_delete( 'cached_mo_files_' . md5( WP_LANG_DIR ), 'translations' ); 247 247 break; 248 248 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)