Skip to content

Commit

Permalink
Add the ability to load the validator with a URL passed via GET param…
Browse files Browse the repository at this point in the history
…eter ?site_url
  • Loading branch information
daniloercoli committed Mar 11, 2015
1 parent 83e4921 commit 17aca0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
else
$nonce_content = '';

$site_url = isset( $_REQUEST['site_url'] ) ? esc_url ( $_REQUEST['site_url'] ) : 'Enter a blog URL';
$site_url = isset( $_REQUEST['site_url'] ) ? esc_url ( $_REQUEST['site_url'] ) : 'http://';
?>
<form name="loginform" id="loginform" action="#" method="post" onSubmit="return xml_rpc_validator.check_url();">
<?php echo $nonce_content; ?>
<div class="tipcontainer"><span class="errortipwrap"><span class="errortiptext">Please Try Again</span></span></div>
<span id="url-loading" class="loading" style="display: none;"></span>
<p>
<label for="site_url" title="Address of site to Validate">Address:</label>
<input type='text' name='site_url' id='site_url' class='input' value='http://' size='30' tabindex='10'/>
<input type='text' name='site_url' id='site_url' class='input' value='<?php echo $site_url; ?>' size='30' tabindex='10'/>
</p>
<br/>
<a href="" id="xmlrpc_validator_advanced_settings_switcher" onclick="xml_rpc_validator.toggle_advanced_settings( ); return false;">More Options</a>
Expand Down

0 comments on commit 17aca0b

Please sign in to comment.