Changeset 22871
- Timestamp:
- 11/27/2012 04:08:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r21740 r22871 30 30 if ( ! current_user_can('activate_plugins') ) 31 31 wp_die(__('You do not have sufficient permissions to activate plugins for this site.')); 32 33 if ( is_multisite() && ! is_network_admin() && is_network_only_plugin( $plugin ) ) { 34 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") ); 35 exit; 36 } 32 37 33 38 check_admin_referer('activate-plugin_' . $plugin); … … 45 50 46 51 if ( ! is_network_admin() ) { 47 if ( is_network_only_plugin( $plugin ) ) {48 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") );49 exit;50 }51 52 52 $recent = (array) get_option( 'recently_activated' ); 53 53 unset( $recent[ $plugin ] );
Note: See TracChangeset
for help on using the changeset viewer.