Make WordPress Core

Changeset 27430


Ignore:
Timestamp:
03/06/2014 01:43:59 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/class-wp-theme-install-list-table.php.

Props kpdesign for the cleanup.
Fixes #27293.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r27247 r27430  
    4949        $nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item.
    5050
     51        /**
     52         * Filter the tabs shown on the Install Themes screen.
     53         *
     54         * @since 2.8.0
     55         *
     56         * @param array $tabs The tabs shown on the Install Themes screen. Defaults are
     57         *                    'dashboard', 'search', 'upload', 'featured', 'new', and 'updated'.
     58         */
    5159        $tabs = apply_filters( 'install_themes_tabs', $tabs );
     60
     61        /**
     62         * Filter tabs not associated with a menu item on the Install Themes screen.
     63         *
     64         * @since 2.8.0
     65         *
     66         * @param array $nonmenu_tabs The tabs that don't have a menu item on
     67         *                            the Install Themes screen.
     68         */
    5269        $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );
    5370
     
    94111        }
    95112
     113        /**
     114         * Filter API request arguments for each Install Themes screen tab.
     115         *
     116         * The dynamic portion of the hook name, $tab, refers to the theme install
     117         * tabs. Default tabs are 'dashboard', 'search', 'upload', 'featured',
     118         * 'new', and 'updated'.
     119         *
     120         * @since 3.7.0
     121         *
     122         * @param array $args An array of themes API arguments.
     123         */
    96124        $args = apply_filters( 'install_themes_table_api_args_' . $tab, $args );
    97125
     
    135163        <div class="tablenav top themes">
    136164            <div class="alignleft actions">
    137                 <?php do_action( 'install_themes_table_header' ); ?>
     165                <?php
     166                /**
     167                 * Fires in the Install Themes list table header.
     168                 *
     169                 * @since 2.8.0
     170                 */
     171                do_action( 'install_themes_table_header' );
     172                ?>
    138173            </div>
    139174            <?php $this->pagination( 'top' ); ?>
     
    225260        $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
    226261
     262        /**
     263         * Filter the install action links for a theme in the Install Themes list table.
     264         *
     265         * @since 3.4.0
     266         *
     267         * @param array    $actions An array of theme action hyperlinks. Defaults are
     268         *                          links to Install Now, Preview, and Details.
     269         * @param WP_Theme $theme   Theme object.
     270         */
    227271        $actions = apply_filters( 'theme_install_actions', $actions, $theme );
    228272
Note: See TracChangeset for help on using the changeset viewer.