wordpress.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. Index: wordpress/wp-login.php
  2. --- wordpress/wp-login.php.orig 2007-09-19 00:23:16 +0200
  3. +++ wordpress/wp-login.php 2007-09-25 07:35:56 +0200
  4. @@ -113,7 +113,7 @@
  5. // Now insert the new pass md5'd into the db
  6. $wpdb->query("UPDATE $wpdb->users SET user_activation_key = '$key' WHERE user_login = '$user_login'");
  7. $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
  8. - $message .= get_option('siteurl') . "\r\n\r\n";
  9. + $message .= sprintf(__('Website: %s'), get_option('siteurl')) . "\r\n";
  10. $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
  11. $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
  12. $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";
  13. @@ -187,7 +187,7 @@
  14. wp_cache_delete($user->user_login, 'userlogins');
  15. $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
  16. $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
  17. - $message .= get_option('siteurl') . "/wp-login.php\r\n";
  18. + $message .= sprintf(__('Login: %s'), get_option('siteurl') . "/wp-login.php") . "\r\n";
  19. if (FALSE == wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message)) {
  20. die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
  21. Index: wordpress/wp-mail.php
  22. --- wordpress/wp-mail.php.orig 2007-09-18 18:32:22 +0200
  23. +++ wordpress/wp-mail.php 2007-09-25 07:35:56 +0200
  24. @@ -142,7 +142,7 @@
  25. $post_category = $post_categories;
  26. // or maybe we should leave the choice to email drafts? propose a way
  27. - $post_status = 'publish';
  28. + $post_status = 'draft';
  29. $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status');
  30. $post_data = add_magic_quotes($post_data);