WordPress.org

Make WordPress Core

Changeset 19677


Ignore:
Timestamp:
01/04/12 20:05:39 (2 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r19593 r19677  
    12161216function get_the_password_form() { 
    12171217    global $post; 
    1218     $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); 
    1219     $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 
     1218    $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); 
     1219    $output = '<form action="' . site_url('wp-pass.php') . '" method="post"> 
    12201220    <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 
    12211221    <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> 
Note: See TracChangeset for help on using the changeset viewer.