Changeset 38704 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 10/03/2016 06:41:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r38698 r38704 3620 3620 3621 3621 $install_status = install_plugin_install_status( $api ); 3622 $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : ''; 3623 3624 // If install request is coming from import page, do not return network activation link. 3625 $plugins_url = ( 'import' === $pagenow ) ? admin_url( 'plugins.php' ) : network_admin_url( 'plugins.php' ); 3622 3626 3623 3627 if ( current_user_can( 'activate_plugins' ) && is_plugin_inactive( $install_status['file'] ) ) { … … 3626 3630 'action' => 'activate', 3627 3631 'plugin' => $install_status['file'], 3628 ), network_admin_url( 'plugins.php' ));3629 } 3630 3631 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {3632 ), $plugins_url ); 3633 } 3634 3635 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) && 'import' !== $pagenow ) { 3632 3636 $status['activateUrl'] = add_query_arg( array( 'networkwide' => 1 ), $status['activateUrl'] ); 3633 3637 }
Note: See TracChangeset
for help on using the changeset viewer.