Plugin Directory

Changeset 1047434


Ignore:
Timestamp:
12/17/2014 07:26:23 PM (11 years ago)
Author:
freakingid
Message:

Block network activation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content-scheduler/trunk/content-scheduler.php

    r1047432 r1047434  
    128128
    129129            if (function_exists('is_multisite') && is_multisite()) {
     130                // at this time, we want to disallow network activation
     131                if ( $network_wide ) {
     132                    deactivate_plugins( plugin_basename( __FILE__ ), TRUE, TRUE );
     133                    header( 'Location: ' . network_admin_url( 'plugins.php?deactivate=true' ) );
     134                }
    130135                // check if it is a network activation - if so, run the activation function
    131136                // for each blog id
Note: See TracChangeset for help on using the changeset viewer.