Make WordPress Core


Ignore:
Timestamp:
04/16/2016 04:42:48 PM (9 years ago)
Author:
afercia
Message:

Plugin Install: show the upload form in place rather than sending users to the devoted upload plugin page.

Props Ipstenu, ericlewis, michaelarestad.

Fixes #35429.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader-skins.php

    r35855 r37221  
    580580        } elseif ( $this->type == 'web' ) {
    581581            $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugin-install.php' ) . '" target="_parent">' . __( 'Return to Plugin Installer' ) . '</a>';
     582        } elseif ( 'upload' == $this->type && 'plugins' == $from ) {
     583            $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugin-install.php' ) . '">' . __( 'Return to Plugin Installer' ) . '</a>';
    582584        } else {
    583585            $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.