Changeset 63361
- Timestamp:
- 08/27/2026 12:05:58 PM (6 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-settings.php
r62829 r63361 503 503 $GLOBALS['wp_plugin_paths'] = array(); 504 504 505 // To make get_plugin_data() available for both network-activated and site-activated plugins, see #62244 and #64249. 506 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 507 505 508 // Load must-use plugins. 506 509 foreach ( wp_get_mu_plugins() as $mu_plugin ) { … … 524 527 foreach ( wp_get_active_network_plugins() as $network_plugin ) { 525 528 wp_register_plugin_realpath( $network_plugin ); 529 530 $plugin_data = get_plugin_data( $network_plugin, false, false ); 531 532 $textdomain = $plugin_data['TextDomain']; 533 if ( $textdomain ) { 534 if ( $plugin_data['DomainPath'] ) { 535 $GLOBALS['wp_textdomain_registry']->set_custom_path( $textdomain, dirname( $network_plugin ) . $plugin_data['DomainPath'] ); 536 } else { 537 $GLOBALS['wp_textdomain_registry']->set_custom_path( $textdomain, dirname( $network_plugin ) ); 538 } 539 } 526 540 527 541 $_wp_plugin_file = $network_plugin; … … 538 552 do_action( 'network_plugin_loaded', $network_plugin ); 539 553 } 540 unset( $network_plugin, $_wp_plugin_file );554 unset( $network_plugin, $_wp_plugin_file, $plugin_data, $textdomain ); 541 555 } 542 556 … … 575 589 wp_recovery_mode()->initialize(); 576 590 } 577 578 // To make get_plugin_data() available in a way that's compatible with plugins also loading this file, see #62244.579 require_once ABSPATH . 'wp-admin/includes/plugin.php';580 591 581 592 // Load active plugins.
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)