Make WordPress Core

Ticket #25229: wp-admin-plugin-install.25229.2.diff

File wp-admin-plugin-install.25229.2.diff, 1.7 KB (added by naomicbush, 11 years ago)

wp-admin/plugin-install.php

  • wp-admin/plugin-install.php

    diff --git wp-admin/plugin-install.php wp-admin/plugin-install.php
    index 25470d6..7e907be 100644
     
    99if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
    1010        define( 'IFRAME_REQUEST', true );
    1111
    12 /** WordPress Administration Bootstrap */
     12/**
     13 * WordPress Administration Bootstrap.
     14 */
    1315require_once('./admin.php');
    1416
    1517if ( ! current_user_can('install_plugins') )
    if ( 'plugin-information' != $tab ) 
    3335
    3436$body_id = $tab;
    3537
    36 do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information.
     38/**
     39 * Fires before each $tab is loaded.
     40 *
     41 * Used to override the general interface, e.g. install or plugin information.
     42 *
     43 * @since 2.7.0
     44 */
     45do_action( 'install_plugins_pre_' . $tab );
    3746
    3847get_current_screen()->add_help_tab( array(
    3948'id'            => 'overview',
    get_current_screen()->set_help_sidebar( 
    5766        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    5867);
    5968
     69/**
     70 * WordPress Administration Template Header.
     71 */
    6072include(ABSPATH . 'wp-admin/admin-header.php');
    6173?>
    6274<div class="wrap">
    include(ABSPATH . 'wp-admin/admin-header.php'); 
    6678<?php $wp_list_table->views(); ?>
    6779
    6880<br class="clear" />
    69 <?php do_action('install_plugins_' . $tab, $paged); ?>
     81<?php
     82/**
     83 * Fires after list of views — displays the view specified by $tab.
     84 *
     85 * @since 2.7.0
     86 *
     87 * @param int $paged Current page number.
     88 */
     89?>
     90<?php do_action( 'install_plugins_' . $tab, $paged ); ?>
    7091</div>
    7192<?php
     93/**
     94 * WordPress Administration Template Footer.
     95 */
    7296include(ABSPATH . 'wp-admin/admin-footer.php');