WordPress.org

Make WordPress Core

Ticket #25823: 25823.2.diff

File 25823.2.diff, 1.9 KB (added by kpdesign, 7 years ago)

Second pass

  • src/wp-admin/theme-install.php

     
    3434
    3535$body_id = $tab;
    3636
    37 do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
     37/**
     38 * Fires before theme install tabs are rendered.
     39 *
     40 * This hook is used to override the general interface, e.g, display install or theme information.
     41 * The exact action fired is determined by the $tab variable. Possible values are:
     42 *
     43 * - install_themes_pre_dashboard
     44 * - install_themes_pre_search
     45 * - install_themes_pre_upload
     46 * - install_themes_pre_featured
     47 * - install_themes_pre_new
     48 * - install_themes_pre_updated
     49 *
     50 * @since 2.8.0
     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" />
    83 <?php do_action('install_themes_' . $tab, $paged); ?>
     98<?php
     99/**
     100 * Fires at the top of the theme install page tabs.
     101 *
     102 * The exact action fired is determined by the $tab variable. Possible values are:
     103 *
     104 * - install_themes_dashboard
     105 * - install_themes_search
     106 * - install_themes_upload
     107 * - install_themes_featured
     108 * - install_themes_new
     109 * - install_themes_updated
     110 *
     111 * @since 2.8.0
     112 *
     113 * @param int $paged The page of results being viewed.
     114 */
     115do_action( "install_themes_{$tab}", $paged );
     116?>
    84117</div>
    85118<?php
    86119include(ABSPATH . 'wp-admin/admin-footer.php');