WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/06/2008 07:39:11 AM (12 years ago)
Author:
ryan
Message:

More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r7999 r8058  
    3434function wp_loginout() {
    3535    if ( ! is_user_logged_in() )
    36         $link = '<a href="' . get_option('siteurl') . '/wp-login.php">' . __('Log in') . '</a>';
     36        $link = '<a href="' . site_url('wp-login.php', 'forceable') . '">' . __('Log in') . '</a>';
    3737    else
    38         $link = '<a href="' . get_option('siteurl') . '/wp-login.php?action=logout">' . __('Log out') . '</a>';
     38        $link = '<a href="' . site_url('wp-login.php?action=logout', 'forceable') . '">' . __('Log out') . '</a>';
    3939
    4040    echo apply_filters('loginout', $link);
     
    4646    if ( ! is_user_logged_in() ) {
    4747        if ( get_option('users_can_register') )
    48             $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
     48            $link = $before . '<a href="' . site_url('wp-login.php?action=register', 'forceable') . '">' . __('Register') . '</a>' . $after;
    4949        else
    5050            $link = '';
    5151    } else {
    52         $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;
     52        $link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after;
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.