Make WordPress Core

Changeset 29637


Ignore:
Timestamp:
08/27/2014 02:58:46 AM (10 years ago)
Author:
nacin
Message:

Adjust [29634] so the Upload Plugin button can be shown. see #29236.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r29636 r29637  
    7171        if ( current_user_can( 'upload_plugins' ) ) {
    7272            // No longer a real tab. Here for filter compatibility.
    73             // Gets juggled into $nonmenu_tabs below.
     73            // Gets skipped in get_views().
    7474            $tabs['upload'] = __( 'Upload Plugin' );
    7575        }
     
    9595         */
    9696        $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         }
    10297
    10398        // If a non-valid menu tab has been selected, And it's not a non-menu action.
     
    216211            $display_tabs['plugin-install-'.$action] = "<a href='$href' class='$class'>$text</a>";
    217212        }
     213        // No longer a real tab.
     214        unset( $display_tabs['plugin-install-upload'] );
    218215
    219216        return $display_tabs;
Note: See TracChangeset for help on using the changeset viewer.