- Timestamp:
- 08/27/2014 01:31:05 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r29597 r29634 70 70 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); 71 71 } 72 73 $nonmenu_tabs = array( 'upload', 'plugin-information' ); //Valid actions to perform which do not have a Menu item. 72 if ( current_user_can( 'upload_plugins' ) ) { 73 // No longer a real tab. Here for filter compatibility. 74 // Gets juggled into $nonmenu_tabs below. 75 $tabs['upload'] = __( 'Upload Plugin' ); 76 } 77 78 $nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item. 74 79 75 80 /** … … 91 96 */ 92 97 $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); 98 99 if ( isset( $tabs['upload'] ) ) { 100 unset( $tabs['upload'] ); 101 $nonmenu_tabs[] = 'upload'; 102 } 93 103 94 104 // If a non-valid menu tab has been selected, And it's not a non-menu action.
Note: See TracChangeset
for help on using the changeset viewer.