WordPress.org

Make WordPress Core

Ticket #25823: 25823.diff

File 25823.diff, 2.1 KB (added by leewillis77, 7 years ago)

Patch

  • wp-admin/theme-install.php

     
    22/**
    33 * Install theme administration panel.
    44 *
     5 * @since 2.8.0
     6 *
    57 * @package WordPress
    68 * @subpackage Administration
    79 */
     
    911if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
    1012        define( 'IFRAME_REQUEST', true );
    1113
    12 /** WordPress Administration Bootstrap */
     14// Include WordPress Administration Bootstrap.
    1315require_once( dirname( __FILE__ ) . '/admin.php' );
    1416
    1517if ( ! current_user_can('install_themes') )
     
    3436
    3537$body_id = $tab;
    3638
    37 do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
     39/**
     40 * Fires before theme install tabs are rendered
     41 *
     42 * The exact action fired will depend on the $tab variable. Possible values are:
     43 * - install_themes_pre_dashboard
     44 * - install_themes_pre_upload
     45 * - install_themes_pre_featured
     46 * - install_themes_pre_new
     47 * - install_themes_pre_updated
     48 *
     49 * @since 2.8.0
     50 *
     51 */
     52do_action('install_themes_pre_' . $tab);
    3853
    3954$help_overview =
    4055        '<p>' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/themes/') . '</p>' .
     
    8095$wp_list_table->views(); ?>
    8196
    8297<br class="clear" />
     98<?php
     99/**
     100 * Fires at the top of the theme install page tabs
     101 *
     102 * The exact action fired will depend on the $tab variable. Possible values are:
     103 * - install_themes_dashboard
     104 * - install_themes_upload
     105 * - install_themes_featured
     106 * - install_themes_new
     107 * - install_themes_updated
     108 *
     109 * @since 2.8.0
     110 *
     111 * @param  int $paged The page of results being viewed
     112 */
     113?>
    83114<?php do_action('install_themes_' . $tab, $paged); ?>
    84115</div>
    85116<?php