Make WordPress Core


Ignore:
Timestamp:
02/22/2006 07:30:28 AM (18 years ago)
Author:
ryan
Message:

Hide cookie layout behind wp_get_cookie_login() so that plugins can customize the cookies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable-functions.php

    r3563 r3565  
    247247        header("Location: $location");
    248248}
     249endif;
     250
     251if ( !function_exists('wp_get_cookie_login') ):
     252function wp_get_cookie_login() {
     253    if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) )
     254        return false;
     255
     256    return array('login' => $_COOKIE[USER_COOKIE],  'password' => $_COOKIE[PASS_COOKIE]);
     257}
     258
    249259endif;
    250260
Note: See TracChangeset for help on using the changeset viewer.