WordPress.org

Make WordPress Core

Ticket #25823: 25823.3.diff

File 25823.3.diff, 1.7 KB (added by DrewAPicture, 7 years ago)

Simplify descriptions.

  • 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 each of the tabs are rendered on the Install Themes page.
     39 *
     40 * The dynamic portion of the hook name, $tab, refers to the current
     41 * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     42 * 'featured', 'new', or 'updated'.
     43 *
     44 * @since 2.8.0
     45 */
     46do_action( "install_themes_pre_{$tab}" );
    3847
    3948$help_overview =
    4049        '<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>' .
     
    8089$wp_list_table->views(); ?>
    8190
    8291<br class="clear" />
    83 <?php do_action('install_themes_' . $tab, $paged); ?>
     92<?php
     93/**
     94 * Fires at the top of each of the tabs on the Install Themes page.
     95 *
     96 * The dynamic portion of the hook name, $tab, refers to the current
     97 * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     98 * 'featured', 'new', or 'updated'.
     99 *
     100 * @since 2.8.0
     101 *
     102 * @param int $paged Number of the current page of results being viewed.
     103 */
     104do_action( "install_themes_{$tab}", $paged );
     105?>
    84106</div>
    85107<?php
    86108include(ABSPATH . 'wp-admin/admin-footer.php');