Ticket #29631: 29631.diff
| File 29631.diff, 1.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/class-wp-plugin-install-list-table.php
60 60 // These are the tabs which are shown on the page 61 61 $tabs = array(); 62 62 63 if ( 'search' == $tab ) 63 if ( 'search' == $tab ) { 64 64 $tabs['search'] = __( 'Search Results' ); 65 } 66 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) { 67 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); 68 } 65 69 $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); 66 70 $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); 67 71 $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); 68 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {69 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );70 }71 72 if ( current_user_can( 'upload_plugins' ) ) { 72 73 // No longer a real tab. Here for filter compatibility. 73 74 // Gets skipped in get_views().