Changeset 1088 for trunk/wp-includes/template-functions-post.php
- Timestamp:
- 04/17/2004 03:56:23 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-post.php
r1039 r1088 18 18 function get_the_password_form() { 19 19 $output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post"> 20 <p> This post is password protected. To view it please enter your password below:</p>21 <p><label> Password:<input name="post_password" type="text" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p>20 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 21 <p><label>' . __("Password:") . ' <input name="post_password" type="text" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p> 22 22 </form> 23 23 '; … … 183 183 if (!empty($post->post_password)) { // if there's a password 184 184 if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 185 $output = 'There is no excerpt because this is a protected post.';185 $output = __('There is no excerpt because this is a protected post.'); 186 186 return $output; 187 187 }
Note: See TracChangeset
for help on using the changeset viewer.