Ticket #25823: 25823.diff
File 25823.diff, 2.1 KB (added by , 7 years ago) |
---|
-
wp-admin/theme-install.php
2 2 /** 3 3 * Install theme administration panel. 4 4 * 5 * @since 2.8.0 6 * 5 7 * @package WordPress 6 8 * @subpackage Administration 7 9 */ … … 9 11 if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) 10 12 define( 'IFRAME_REQUEST', true ); 11 13 12 / ** WordPress Administration Bootstrap */14 // Include WordPress Administration Bootstrap. 13 15 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 16 15 17 if ( ! current_user_can('install_themes') ) … … 34 36 35 37 $body_id = $tab; 36 38 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 */ 52 do_action('install_themes_pre_' . $tab); 38 53 39 54 $help_overview = 40 55 '<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>' . … … 80 95 $wp_list_table->views(); ?> 81 96 82 97 <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 ?> 83 114 <?php do_action('install_themes_' . $tab, $paged); ?> 84 115 </div> 85 116 <?php