| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- Index: wordpress/wp-includes/canonical.php
- --- wordpress/wp-includes/canonical.php.orig 2008-02-24 03:09:24 +0100
- +++ wordpress/wp-includes/canonical.php 2008-03-29 22:17:27 +0100
- @@ -139,6 +139,12 @@
- $user_home = @parse_url(get_option('home'));
- $redirect['host'] = $user_home['host'];
-
- + // SHAMELESS HACK TO MAKE WORDPRESS THINK IT IS RUNNING UNDER PORT 80
- + // TO FIX THE URL TROUBLE WITH THE USUAL FRONTEND APACHE WEBSERVER! --rse
- + $user_home['port'] = 80;
- + $redirect['port'] = 80;
- + $original['port'] = 80;
- +
- // Handle ports
- if ( isset($user_home['port']) )
- $redirect['port'] = $user_home['port'];
- Index: wordpress/wp-login.php
- --- wordpress/wp-login.php.orig 2008-03-26 08:43:52 +0100
- +++ wordpress/wp-login.php 2008-03-29 22:18:53 +0100
- @@ -99,7 +99,7 @@
- $wpdb->query("UPDATE $wpdb->users SET user_activation_key = '$key' WHERE user_login = '$user_login'");
- }
- $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
- - $message .= get_option('siteurl') . "\r\n\r\n";
- + $message .= sprintf(__('Website: %s'), get_option('siteurl')) . "\r\n";
- $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
- $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
- $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";
- @@ -129,7 +129,7 @@
- wp_set_password($new_pass, $user->ID);
- $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
- $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
- - $message .= get_option('siteurl') . "/wp-login.php\r\n";
- + $message .= sprintf(__('Login: %s'), get_option('siteurl') . "/wp-login.php") . "\r\n";
-
- if ( !wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message) )
- die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
- Index: wordpress/wp-mail.php
- --- wordpress/wp-mail.php.orig 2007-12-29 20:38:33 +0100
- +++ wordpress/wp-mail.php 2008-03-29 22:20:39 +0100
- @@ -133,6 +133,7 @@
- // Author not found in DB, set status to pending. Author already set to admin.
- $post_status = 'pending';
- }
- + $post_status = 'draft';
-
- $subject = trim($subject);
-
|