Make WordPress Core

Ticket #25836: 25836.diff

File 25836.diff, 1.2 KB (added by DrewAPicture, 12 years ago)

Clarify pre_current_active_plugins hook description.

  • src/wp-admin/plugins.php

     
    147147                                include( WP_PLUGIN_DIR . '/' . $plugin );
    148148                        }
    149149                        plugin_sandbox_scrape( $plugin );
    150                         do_action('activate_' . $plugin);
     150                        /** This action is documented in wp-admin/includes/plugins.php */
     151                        do_action( "activate_{$plugin}" );
    151152                        exit;
    152153                        break;
    153154                case 'deactivate':
     
    416417        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    417418</h2>
    418419
    419 <?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
     420<?php
     421/**
     422 * Fires before the plugins list table is rendered.
     423 *
     424 * This hook also fires before the plugins list table is rendered in the Network Admin.
     425 *
     426 * Note: The 'active' portion of the hook name does not refer to whether the current
     427 * view is for active plugins, but rather actively-installed plugins.
     428 *
     429 * @since 3.0.0
     430 *
     431 * @param array $plugins_all An array containing all installed plugins.
     432 */
     433do_action( 'pre_current_active_plugins', $plugins['all'] );
     434?>
    420435
    421436<?php $wp_list_table->views(); ?>
    422437