Use site_url() to link to wp-pass.php. Props dd32. fixes #14748

git-svn-id: https://develop.svn.wordpress.org/trunk@19677 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-01-04 20:05:39 +00:00
parent 257a55c9b7
commit 01589f357d
1 changed files with 2 additions and 2 deletions

View File

@ -1215,8 +1215,8 @@ function prepend_attachment($content) {
*/
function get_the_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
$label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
$output = '<form action="' . site_url('wp-pass.php') . '" method="post">
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
</form>