Changeset 27430
- Timestamp:
- 03/06/2014 01:43:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r27247 r27430 49 49 $nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item. 50 50 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 */ 51 59 $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 */ 52 69 $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs ); 53 70 … … 94 111 } 95 112 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 */ 96 124 $args = apply_filters( 'install_themes_table_api_args_' . $tab, $args ); 97 125 … … 135 163 <div class="tablenav top themes"> 136 164 <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 ?> 138 173 </div> 139 174 <?php $this->pagination( 'top' ); ?> … … 225 260 $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>'; 226 261 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 */ 227 271 $actions = apply_filters( 'theme_install_actions', $actions, $theme ); 228 272
Note: See TracChangeset
for help on using the changeset viewer.