<?php } } elseif ('check_step2' == $action) { //3rd page $permalink = get_permalink(get_the_ID()); if (!wp_verify_nonce($_REQUEST['name_of_nonce_field_checkstep2'], 'checkstep2')) { echo 'Sorry, your nonce did not verify.'; } else { $site_url = isset($_REQUEST['site_url']) ? $_REQUEST['site_url'] : ''; $xmlrpc_url = isset($_REQUEST['xmlrpc_url']) ? $_REQUEST['xmlrpc_url'] : ''; $client = new Blog_Validator(esc_url_raw($site_url)); $client->xmlrpc_endpoint_URL = esc_url_raw($xmlrpc_url); $client->setWPCredential($_REQUEST['user_login'], $_REQUEST['user_pass']); //Set the UserAgent $user_agent_selected = esc_attr($_REQUEST['user_agent']); $client->setUserAgent($user_agent_selected); //Enable HTTP Auth if selected $enable_401_auth = !empty($_REQUEST['enable_401_auth']); if ($enable_401_auth) { xml_rpc_validator_logIO("O", "HTTP auth enabled"); $client->setHTTPCredential($_REQUEST['HTTP_auth_user_login'], $_REQUEST['HTTP_auth_user_pass']); } $basicCallsRes = $client->getUsersBlogs(); if (is_wp_error($basicCallsRes)) { echo $xml_rpc_validator_utils->printErrors($basicCallsRes); } else { if (!empty($client->userBlogs)) { ?> <form name="xml_rpc_single_site_form" id="xml_rpc_single_site_form" action="#" method="post" onsubmit="return false;"> <p>Please select the blog you wanna test:</p> <?php