Inline documentation for hooks in wp-admin/plugins.php.

Props a.hoereth and kpdesign for the initial patches.
Fixes #25836.

Built from https://develop.svn.wordpress.org/trunk@26345


git-svn-id: http://core.svn.wordpress.org/trunk@26246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-11-23 23:04:10 +00:00
parent 87a3892f45
commit 2768466674
1 changed files with 17 additions and 2 deletions

View File

@ -147,7 +147,8 @@ if ( $action ) {
include( WP_PLUGIN_DIR . '/' . $plugin );
}
plugin_sandbox_scrape( $plugin );
do_action('activate_' . $plugin);
/** This action is documented in wp-admin/includes/plugins.php */
do_action( "activate_{$plugin}" );
exit;
break;
case 'deactivate':
@ -416,7 +417,21 @@ if ( $s )
printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
</h2>
<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
<?php
/**
* Fires before the plugins list table is rendered.
*
* This hook also fires before the plugins list table is rendered in the Network Admin.
*
* Please note: The 'active' portion of the hook name does not refer to whether the current
* view is for active plugins, but rather all plugins actively-installed.
*
* @since 3.0.0
*
* @param array $plugins_all An array containing all installed plugins.
*/
do_action( 'pre_current_active_plugins', $plugins['all'] );
?>
<?php $wp_list_table->views(); ?>