wordpress.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Index: wordpress/wp-includes/canonical.php
  2. --- wordpress/wp-includes/canonical.php.orig 2008-05-25 17:45:05 +0200
  3. +++ wordpress/wp-includes/canonical.php 2008-08-06 09:26:50 +0200
  4. @@ -144,6 +144,12 @@
  5. if ( isset($user_home['host']) )
  6. $redirect['host'] = $user_home['host'];
  7. + // SHAMELESS HACK TO MAKE WORDPRESS THINK IT IS RUNNING UNDER PORT 80
  8. + // TO FIX THE URL TROUBLE WITH THE USUAL FRONTEND APACHE WEBSERVER! --rse
  9. + $user_home['port'] = 80;
  10. + $redirect['port'] = 80;
  11. + $original['port'] = 80;
  12. +
  13. // Handle ports
  14. if ( isset($user_home['port']) )
  15. $redirect['port'] = $user_home['port'];
  16. Index: wordpress/wp-login.php
  17. --- wordpress/wp-login.php.orig 2008-07-11 22:14:44 +0200
  18. +++ wordpress/wp-login.php 2008-08-06 09:26:50 +0200
  19. @@ -138,7 +138,7 @@
  20. $wpdb->query($wpdb->prepare("UPDATE $wpdb->users SET user_activation_key = %s WHERE user_login = %s", $key, $user_login));
  21. }
  22. $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
  23. - $message .= get_option('siteurl') . "\r\n\r\n";
  24. + $message .= sprintf(__('Website: %s'), get_option('siteurl')) . "\r\n";
  25. $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
  26. $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
  27. $message .= site_url("wp-login.php?action=rp&key=$key", 'login') . "\r\n";
  28. Index: wordpress/wp-mail.php
  29. --- wordpress/wp-mail.php.orig 2008-05-25 17:50:15 +0200
  30. +++ wordpress/wp-mail.php 2008-08-06 09:26:50 +0200
  31. @@ -143,6 +143,7 @@
  32. // Author not found in DB, set status to pending. Author already set to admin.
  33. $post_status = 'pending';
  34. }
  35. + $post_status = 'draft';
  36. $subject = trim($subject);
  37. Index: wp-hashcash/wp-hashcash.php
  38. --- wp-hashcash/wp-hashcash.php.orig 2008-07-30 10:07:02 +0200
  39. +++ wp-hashcash/wp-hashcash.php 2008-08-06 09:27:21 +0200
  40. @@ -521,7 +521,6 @@
  41. }
  42. echo '<div><input type="hidden" id="wphc_value" name="wphc_value" value=""/></div>';
  43. - echo '<p>' . __('Powered by', 'wp-hashcash') . ' <a href="http://wordpress-plugins.feifei.us/hashcash/">WP Hashcash</a></p>';
  44. echo '<noscript><div><small>Wordpress Hashcash needs javascript to work, but your browser has javascript disabled. Your comment will be '.$verb.'!</small></div></noscript>';
  45. }