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/functions.php

    r7999 r8069  
    17691769    return ( 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false;
    17701770}
     1771
     1772function force_ssl_login($force = '') {
     1773    static $forced;
     1774
     1775    if ( '' != $force ) {
     1776        $old_forcded = $forced;
     1777        $forced = $force;
     1778        return $old_forced;
     1779    }
     1780
     1781    return $forced;
     1782}
     1783
     1784function force_ssl_admin($force = '') {
     1785    static $forced;
     1786
     1787    if ( '' != $force ) {
     1788        $old_forcded = $forced;
     1789        $forced = $force;
     1790        return $old_forced;
     1791    }
     1792
     1793    return $forced;
     1794}
     1795
    17711796?>
Note: See TracChangeset for help on using the changeset viewer.