WordPress.org

Make WordPress Core

Ticket #25836: wp-admin_plugins-php.patch

File wp-admin_plugins-php.patch, 952 bytes (added by a.hoereth, 8 years ago)
  • wp-admin/plugins.php

     
    147147                                include( WP_PLUGIN_DIR . '/' . $plugin );
    148148                        }
    149149                        plugin_sandbox_scrape( $plugin );
     150
     151                        /** This action is documented in wp-admin/includes/plugins.php */
    150152                        do_action('activate_' . $plugin);
     153                       
    151154                        exit;
    152155                        break;
    153156                case 'deactivate':
     
    415418        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    416419</h2>
    417420
    418 <?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
     421<?php
     422/**
     423 * Fires before the list of currently active plugins is rendered.
     424 *
     425 * @since 3.0
     426 *
     427 * @param array $plugins['all'] Array containing all installed plugins.
     428 */
     429do_action( 'pre_current_active_plugins', $plugins['all'] );
     430?>
    419431
    420432<?php $wp_list_table->views(); ?>
    421433