Make WordPress Core


Ignore:
Timestamp:
06/11/2008 05:25:55 PM (17 years ago)
Author:
ryan
Message:

Introduce logged_in cookie. Deliver auth cookies only to wp-admin. see #7001

File:
1 edited

Legend:

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

    r8058 r8069  
    781781    // should the list of allowed schemes be maintained elsewhere?
    782782    if ( !in_array($scheme, array('http', 'https')) ) {
    783         if ( ('forceable' == $scheme) && (defined('FORCE_SSL_LOGIN') && FORCE_SSL_LOGIN) )
     783        if ( ('login' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
     784            $scheme = 'https';
     785        elseif ( ('admin' == $scheme) && force_ssl_admin() )
    784786            $scheme = 'https';
    785787        else
     
    798800    global $_wp_admin_url;
    799801
    800     $url = site_url('wp-admin/', 'forceable');
     802    $url = site_url('wp-admin/', 'admin');
    801803
    802804    if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
Note: See TracChangeset for help on using the changeset viewer.