This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
------------------------------------------------------------------ | |
*/ | |
public function activateCsp() | |
{ | |
if (function_exists('is_multisite') && is_multisite()) { | |
$blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs"); | |
foreach ($blog_id as $id) { | |
if (switch_to_blog($id)) { |
NewerOlder