WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/14/2012 06:29:22 PM (8 years ago)
Author:
ryan
Message:

Set post password cookies via an action in wp-login.php. Retire wp-pass.php (one less root file). Obey login ssl preferences for post password form submission. Props SergeyBiryukov. fixes #19798

File:
1 edited

Legend:

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

    r19812 r19925  
    12211221    global $post;
    12221222    $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    1223     $output = '<form action="' . site_url('wp-pass.php') . '" method="post">
     1223    $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post">
    12241224    <p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
    12251225    <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.