WordPress.org

Make WordPress Core

Ticket #25836: 25836.2.diff

File 25836.2.diff, 996 bytes (added by kpdesign, 8 years ago)

Second pass

  • 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 list of currently active plugins is rendered.
     423 *
     424 * @since 3.0.0
     425 *
     426 * @param array $plugins_all An array containing all installed plugins.
     427 */
     428do_action( 'pre_current_active_plugins', $plugins['all'] );
     429?>
    420430
    421431<?php $wp_list_table->views(); ?>
    422432