content/plugins/wp-image-utils/classes/wp-image-utils.php
/**
		 * Prepares sites to use the plugin during single or network-wide activation
		 *
		 * @mvc Controller
		 *
		 * @param bool $network_wide
		 */
Prepares sites to use the plugin during single or network-wide activation
@mvc Controller


Prepares sites to use the plugin during single or network - wide activation @mvc Controller
public function activate( $network_wide ) {
			global $wpdb;
			if ( function_exists( 'is_multisite' ) && is_multisite() ) {
				if ( $network_wide ) {
					$blogs = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
					foreach ( $blogs as $blog ) {
						switch_to_blog( $blog );
						$this->single_activate( $network_wide );
					}
					restore_current_blog();
				} else {
					$this->single_activate( $network_wide );
				}
			} else {
				$this->single_activate( $network_wide );
			}
		}
public function activate ( $ network_wide ) { global $ wpdb ; if ( function_exists ( 'is_multisite' ) && is_multisite ( ) ) { if ( $ network_wide ) { $ blogs = $ wpdb -> get_col ( " SELECT blog_id FROM  $ wpdb -> blogs " ) ; foreach ( $ blogs as $ blog ) { switch_to_blog ( $ blog ) ; $ this -> single_activate ( $ network_wide ) ; } restore_current_blog ( ) ; } else { $ this -> single_activate ( $ network_wide ) ; } } else { $ this -> single_activate ( $ network_wide ) ; } }
Prepares sites to use the plugin during single or network-wide activation
 @mvc Controller
Prepares sites to use the plugin during single or network - wide activation @mvc Controller