<?php
submit_button( __( 'Confirm'
), 'primary'
); ?>
</form>
</div>
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit;
break;
case 'spam':
case 'notspam':
$updated_action =
( 'spam' ===
$doaction ) ? 'all_spam' : 'all_notspam';
update_blog_status( $site_id, 'spam',
( 'spam' ===
$doaction ) ? '1' : '0'
);
break;
} } else { wp_die( __( 'Sorry, you are not allowed to change the current site.'
) );
} } if ( !
in_array( $doaction, array
( 'delete', 'spam', 'notspam'
), true
) ) { $redirect_to =
wp_get_referer();
$blogs =
(array) $_POST['allblogs'
];