mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Use site_url() to link to wp-pass.php. Props dd32. fixes #14748
git-svn-id: http://svn.automattic.com/wordpress/trunk@19677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
37e65bddcd
commit
5b9144b12d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user