Ticket #55432: 55432.diff
File 55432.diff, 1.8 KB (added by , 3 years ago) |
---|
-
src/wp-settings.php
361 361 362 362 // Load network activated plugins. 363 363 if ( is_multisite() ) { 364 foreach ( wp_get_active_network_plugins() as $ network_plugin) {365 wp_register_plugin_realpath( $ network_plugin);366 include_once $ network_plugin;364 foreach ( wp_get_active_network_plugins() as $_wp_network_plugin_file ) { 365 wp_register_plugin_realpath( $_wp_network_plugin_file ); 366 include_once $_wp_network_plugin_file; 367 367 368 368 /** 369 369 * Fires once a single network-activated plugin has loaded. … … 370 370 * 371 371 * @since 5.1.0 372 372 * 373 * @param string $ network_pluginFull path to the plugin's main file.373 * @param string $_wp_network_plugin_file Full path to the plugin's main file. 374 374 */ 375 do_action( 'network_plugin_loaded', $ network_plugin);375 do_action( 'network_plugin_loaded', $_wp_network_plugin_file ); 376 376 } 377 unset( $ network_plugin);377 unset( $_wp_network_plugin_file ); 378 378 } 379 379 380 380 /** … … 413 413 } 414 414 415 415 // Load active plugins. 416 foreach ( wp_get_active_and_valid_plugins() as $ plugin) {417 wp_register_plugin_realpath( $ plugin);418 include_once $ plugin;416 foreach ( wp_get_active_and_valid_plugins() as $_wp_plugin_file ) { 417 wp_register_plugin_realpath( $_wp_plugin_file ); 418 include_once $_wp_plugin_file; 419 419 420 420 /** 421 421 * Fires once a single activated plugin has loaded. … … 422 422 * 423 423 * @since 5.1.0 424 424 * 425 * @param string $ pluginFull path to the plugin's main file.425 * @param string $_wp_plugin_file Full path to the plugin's main file. 426 426 */ 427 do_action( 'plugin_loaded', $ plugin);427 do_action( 'plugin_loaded', $_wp_plugin_file ); 428 428 } 429 unset( $ plugin);429 unset( $_wp_plugin_file ); 430 430 431 431 // Load pluggable functions. 432 432 require ABSPATH . WPINC . '/pluggable.php';