Make WordPress Core

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

File wp-admin-plugin-install.25229.diff, 1.6 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..999f84b 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 * Override the general interface, e.g. install or plugin information.
     40 *
     41 * @since 2.7.0
     42 */
     43do_action('install_plugins_pre_' . $tab);
    3744
    3845get_current_screen()->add_help_tab( array(
    3946'id'            => 'overview',
    get_current_screen()->set_help_sidebar( 
    5764        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    5865);
    5966
     67/**
     68 * WordPress Administration Template Header.
     69 */
    6070include(ABSPATH . 'wp-admin/admin-header.php');
    6171?>
    6272<div class="wrap">
    include(ABSPATH . 'wp-admin/admin-header.php'); 
    6676<?php $wp_list_table->views(); ?>
    6777
    6878<br class="clear" />
     79<?php
     80/**
     81 * Fires after list of views — displays the view specified by $tab.
     82 *
     83 * @since 2.7.0
     84 *
     85 * @param int $paged Current page number.
     86 */
     87?>
    6988<?php do_action('install_plugins_' . $tab, $paged); ?>
    7089</div>
    7190<?php
     91/**
     92 * WordPress Administration Template Footer.
     93 */
    7294include(ABSPATH . 'wp-admin/admin-footer.php');