Ticket #30337: 30337-add-recommended-tab.diff
File 30337-add-recommended-tab.diff, 1.9 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/class-wp-plugin-install-list-table.php
64 64 $tabs['search'] = __( 'Search Results' ); 65 65 $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); 66 66 $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); 67 $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' ); 67 68 $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); 68 69 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) { 69 70 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); … … 134 135 case 'popular': 135 136 case 'new': 136 137 case 'beta': 138 case 'recommended': 137 139 $args['browse'] = $tab; 138 140 break; 139 141 -
wp-admin/includes/plugin-install.php
245 245 </form> 246 246 <?php 247 247 } 248 add_action( 'install_plugins_search', 'display_plugins_table' ); 249 add_action( 'install_plugins_popular', 'display_plugins_table' ); 250 add_action( 'install_plugins_new', 'display_plugins_table' ); 251 add_action( 'install_plugins_beta', 'display_plugins_table' ); 252 add_action( 'install_plugins_favorites', 'display_plugins_table' ); 248 add_action( 'install_plugins_search', 'display_plugins_table' ); 249 add_action( 'install_plugins_popular', 'display_plugins_table' ); 250 add_action( 'install_plugins_recommended', 'display_plugins_table' ); 251 add_action( 'install_plugins_new', 'display_plugins_table' ); 252 add_action( 'install_plugins_beta', 'display_plugins_table' ); 253 add_action( 'install_plugins_favorites', 'display_plugins_table' ); 253 254 254 255 /** 255 256 * Determine the status we can perform on a plugin.