WordPress.org

Make WordPress Core

Changeset 26343


Ignore:
Timestamp:
11/23/2013 10:36:48 PM (7 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/theme-install.php.

Props leewillis77 and kpdesign for the initial patches.
Fixes #25823.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r25616 r26343  
    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 =
     
    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
Note: See TracChangeset for help on using the changeset viewer.