Changeset 59461 for trunk/src/wp-settings.php
- Timestamp:
- 11/26/2024 10:14:07 AM (21 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-settings.php
r59132 r59461 535 535 */ 536 536 do_action( 'plugin_loaded', $plugin ); 537 } 538 unset( $plugin, $_wp_plugin_file ); 537 538 $plugin_data = get_plugin_data( $plugin, false, false ); 539 540 $textdomain = $plugin_data['TextDomain']; 541 if ( $textdomain ) { 542 if ( $plugin_data['DomainPath'] ) { 543 $GLOBALS['wp_textdomain_registry']->set_custom_path( $textdomain, dirname( $plugin ) . $plugin_data['DomainPath'] ); 544 } else { 545 $GLOBALS['wp_textdomain_registry']->set_custom_path( $textdomain, dirname( $plugin ) ); 546 } 547 } 548 } 549 unset( $plugin, $_wp_plugin_file, $plugin_data, $textdomain ); 539 550 540 551 // Load pluggable functions. … … 672 683 include $theme . '/functions.php'; 673 684 } 685 686 $theme = wp_get_theme( basename( $theme ) ); 687 $theme->load_textdomain(); 674 688 } 675 689 unset( $theme );
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)