WordPress.org

Make WordPress Core

Ticket #41346: 41346.3.diff

File 41346.3.diff, 971 bytes (added by peterwilsoncc, 5 months ago)

Updated docs to clarify full path is passed as argument.

  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 91729821d4..e48208beb6 100644
    a b foreach ( wp_get_mu_plugins() as $mu_plugin ) { 
    288288         *
    289289         * @since 5.1.0
    290290         *
    291          * @param string $mu_plugin Loaded plugin's basename.
     291         * @param string $mu_plugin Full path to the plugin's main file.
    292292         */
    293293        do_action( 'mu_plugin_loaded', $mu_plugin );
    294294}
    if ( is_multisite() ) { 
    305305                 *
    306306                 * @since 5.1.0
    307307                 *
    308                  * @param string $network_plugin Loaded plugin's basename.
     308                 * @param string $network_plugin Full path to the plugin's main file.
    309309                 */
    310310                do_action( 'network_plugin_loaded', $network_plugin );
    311311        }
    foreach ( wp_get_active_and_valid_plugins() as $plugin ) { 
    352352         *
    353353         * @since 5.1.0
    354354         *
    355          * @param string $plugin Loaded plugin's basename.
     355         * @param string $plugin Full path to the plugin's main file.
    356356         */
    357357        do_action( 'plugin_loaded', $plugin );
    358358}