wordpress.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Index: wp-includes/formatting.php
  2. --- wp-includes/formatting.php.orig 2007-01-09 23:53:14 +0100
  3. +++ wp-includes/formatting.php 2007-02-14 11:32:46 +0100
  4. @@ -80,7 +80,7 @@
  5. $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
  6. $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
  7. if ( strstr( $pee, '<pre' ) )
  8. - $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' ", $pee);
  9. + $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " wp_kses_stripslashes('$1') . wp_kses_stripslashes(clean_pre('$2')) . '</pre>' ", $pee);
  10. $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
  11. /**/
  12. return $pee;
  13. Index: wp-login.php
  14. --- wp-login.php.orig 2006-12-21 11:10:04 +0100
  15. +++ wp-login.php 2007-02-14 11:32:46 +0100
  16. @@ -114,7 +114,7 @@
  17. // Now insert the new pass md5'd into the db
  18. $wpdb->query("UPDATE $wpdb->users SET user_activation_key = '$key' WHERE user_login = '$user_login'");
  19. $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
  20. - $message .= get_option('siteurl') . "\r\n\r\n";
  21. + $message .= sprintf(__('Website: %s'), get_option('siteurl')) . "\r\n";
  22. $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
  23. $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
  24. $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";
  25. @@ -188,7 +188,7 @@
  26. wp_cache_delete($user->user_login, 'userlogins');
  27. $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
  28. $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
  29. - $message .= get_option('siteurl') . "/wp-login.php\r\n";
  30. + $message .= sprintf(__('Login: %s'), get_option('siteurl') . "/wp-login.php") . "\r\n";
  31. if (FALSE == wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message)) {
  32. die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
  33. Index: wp-mail.php
  34. --- wp-mail.php.orig 2006-08-30 23:46:31 +0200
  35. +++ wp-mail.php 2007-02-14 11:36:00 +0100
  36. @@ -131,7 +131,7 @@
  37. $post_category = $post_categories;
  38. // or maybe we should leave the choice to email drafts? propose a way
  39. - $post_status = 'publish';
  40. + $post_status = 'draft';
  41. $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status');
  42. $post_data = add_magic_quotes($post_data);
  43. @@ -161,4 +161,4 @@
  44. $pop3->quit();
  45. -?>
  46. \ No newline at end of file
  47. +?>