Changeset 4144 for trunk/wp-login.php
- Timestamp:
- 08/30/2006 09:46:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r4143 r4144 17 17 18 18 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 19 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_ settings('siteurl') )19 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) 20 20 update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) ); 21 21 } … … 46 46 <title>WordPress » <?php _e('Lost Password') ?></title> 47 47 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 48 <link rel="stylesheet" href="<?php echo get_ settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" />48 <link rel="stylesheet" href="<?php echo get_option('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> 49 49 <script type="text/javascript"> 50 50 function focusit() { … … 81 81 <ul> 82 82 <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">« <?php _e('Back to blog') ?></a></li> 83 <?php if (get_ settings('users_can_register')) : ?>83 <?php if (get_option('users_can_register')) : ?> 84 84 <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e('Register') ?></a></li> 85 85 <?php endif; ?> … … 112 112 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 113 113 $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n"; 114 $message .= get_ settings('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";115 116 $m = wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_ settings('blogname')), $message);114 $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n"; 115 116 $m = wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message); 117 117 118 118 if ($m == false) { … … 146 146 $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n"; 147 147 $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n"; 148 $message .= get_ settings('siteurl') . "/wp-login.php\r\n";149 150 $m = wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_ settings('blogname')), $message);148 $message .= get_option('siteurl') . "/wp-login.php\r\n"; 149 150 $m = wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message); 151 151 152 152 if ($m == false) { … … 159 159 // send a copy of password change notification to the admin 160 160 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 161 wp_mail(get_ settings('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_settings('blogname')), $message);161 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); 162 162 die(); 163 163 } … … 196 196 // If the user can't edit posts, send them to their profile. 197 197 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) ) 198 $redirect_to = get_ settings('siteurl') . '/wp-admin/profile.php';198 $redirect_to = get_option('siteurl') . '/wp-admin/profile.php'; 199 199 200 200 if ( wp_login($user_login, $user_pass, $using_cookie) ) { … … 247 247 <ul> 248 248 <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>">« <?php _e('Back to blog') ?></a></li> 249 <?php if (get_ settings('users_can_register')) : ?>249 <?php if (get_option('users_can_register')) : ?> 250 250 <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e('Register') ?></a></li> 251 251 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.