get_col('SELECT blog_id FROM '.$wpdb->blogs.' WHERE site_id='.$current_site->id);
echo '
';
foreach($blog_ids as $blog_id){
$plugin_basename = plugin_basename(dirname(dirname(__FILE__)).'/events-manager.php');
if( in_array( $plugin_basename, (array) get_blog_option($blog_id, 'active_plugins', array() ) ) || is_plugin_active_for_network($plugin_basename) ){
if( EM_VERSION > get_blog_option($blog_id, 'dbem_version', 0) ){
switch_to_blog($blog_id);
require_once( dirname(__FILE__).'/../em-install.php');
em_install();
echo "- ".sprintf(_x('Updated %s.', 'Multisite Blog Update','events-manager'), get_bloginfo('blogname'))."
";
restore_current_blog();
}else{
echo "- ".sprintf(_x('%s is up to date.', 'Multisite Blog Update','events-manager'), get_blog_option($blog_id, 'blogname'))."
";
}
}else{
echo "- ".sprintf(_x('%s does not have Events Manager activated.', 'Multisite Blog Update','events-manager'), get_blog_option($blog_id, 'blogname'))."
";
}
}
echo '
';
echo "
".esc_html__('Update process has finished.', 'events-manager')."
";
}elseif( !empty($_REQUEST['action']) && !empty($site_updates[$_REQUEST['action']]) ){
do_action('em_admin_update_ms_'.$_REQUEST['action']);
}else{
?>
$update_data ){
do_action('em_admin_update_ms_settings_'.$update, $update_data);
}
}
?>
'. __('Event Related Placeholders','events-manager') .'';
$locations_placeholders = '