WordPress.org

Make WordPress Core

Ticket #41346: 41346.diff

File 41346.diff, 395 bytes (added by schlessera, 22 months ago)

Simplest solution to the issue

  • src/wp-settings.php

    diff --git src/wp-settings.php src/wp-settings.php
    index 3d4c210338..b37c97fc5c 100644
    register_theme_directory( get_theme_root() ); 
    301301foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
    302302        wp_register_plugin_realpath( $plugin );
    303303        include_once( $plugin );
     304        do_action( 'plugin_loaded', $plugin );
    304305}
    305306unset( $plugin );
    306307