Make WordPress Core

Ticket #18218: login-logout.patch

File login-logout.patch, 3.5 KB (added by ramiy, 13 years ago)

"Log out => Log Out" & "Log in => Log In"

  • wp-includes/general-template.php

     
    184184 */
    185185function wp_loginout($redirect = '', $echo = true) {
    186186        if ( ! is_user_logged_in() )
    187                 $link = '<a href="' . esc_url( wp_login_url($redirect) ) . '">' . __('Log in') . '</a>';
     187                $link = '<a href="' . esc_url( wp_login_url($redirect) ) . '">' . __('Log In') . '</a>';
    188188        else
    189                 $link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>';
     189                $link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log Out') . '</a>';
    190190
    191191        if ( $echo )
    192192                echo apply_filters('loginout', $link);
  • wp-includes/theme-compat/comments.php

     
    7070
    7171<?php if ( is_user_logged_in() ) : ?>
    7272
    73 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
     73<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log Out'); ?>"><?php _e('Log Out'); ?></a></p>
    7474
    7575<?php else : ?>
    7676
  • wp-login.php

     
    416416</form>
    417417
    418418<p id="nav">
    419 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a>
     419<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log In') ?></a>
    420420<?php if (get_option('users_can_register')) : ?>
    421421 | <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a>
    422422<?php endif; ?>
     
    441441                $errors = new WP_Error('password_reset_mismatch', __('The passwords do not match.'));
    442442        } elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ) {
    443443                reset_password($user, $_POST['pass1']);
    444                 login_header(__('Password Reset'), '<p class="message reset-pass">' . __('Your password has been reset.') . ' <a href="' . site_url('wp-login.php', 'login') . '">' . __('Log in') . '</a></p>');
     444                login_header(__('Password Reset'), '<p class="message reset-pass">' . __('Your password has been reset.') . ' <a href="' . site_url('wp-login.php', 'login') . '">' . __('Log In') . '</a></p>');
    445445                login_footer();
    446446                exit;
    447447        }
     
    472472</form>
    473473
    474474<p id="nav">
    475 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a>
     475<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log In') ?></a>
    476476<?php if (get_option('users_can_register')) : ?>
    477477 | <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a>
    478478<?php endif; ?>
     
    528528</form>
    529529
    530530<p id="nav">
    531 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> |
     531<a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log In') ?></a> |
    532532<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
    533533</p>
    534534