Make WordPress Core

Ticket #27293: 27293.2.diff

File 27293.2.diff, 2.6 KB (added by kpdesign, 11 years ago)

Tweaks

  • src/wp-admin/includes/class-wp-theme-install-list-table.php

     
    4848
    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
    5471                // If a non-valid menu tab has been selected, And it's not a non-menu action.
     
    93110                                break;
    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
    98126                if ( ! $args )
     
    134162?>
    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' ); ?>
    140175                        <br class="clear" />
     
    224259
    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.
     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
    229273                ?>