Changeset 29637
- Timestamp:
- 08/27/2014 02:58:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r29636 r29637 71 71 if ( current_user_can( 'upload_plugins' ) ) { 72 72 // No longer a real tab. Here for filter compatibility. 73 // Gets juggled into $nonmenu_tabs below.73 // Gets skipped in get_views(). 74 74 $tabs['upload'] = __( 'Upload Plugin' ); 75 75 } … … 95 95 */ 96 96 $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); 97 98 if ( isset( $tabs['upload'] ) ) {99 unset( $tabs['upload'] );100 $nonmenu_tabs[] = 'upload';101 }102 97 103 98 // If a non-valid menu tab has been selected, And it's not a non-menu action. … … 216 211 $display_tabs['plugin-install-'.$action] = "<a href='$href' class='$class'>$text</a>"; 217 212 } 213 // No longer a real tab. 214 unset( $display_tabs['plugin-install-upload'] ); 218 215 219 216 return $display_tabs;
Note: See TracChangeset
for help on using the changeset viewer.