WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/22/2006 07:08:55 PM (16 years ago)
Author:
ryan
Message:

current user cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r3526 r3566  
    396396// Capability checking wrapper around the global $current_user object.
    397397function current_user_can($capability) {
    398     global $current_user;
     398    $current_user = wp_get_current_user();
    399399
    400400    $args = array_slice(func_get_args(), 1);
Note: See TracChangeset for help on using the changeset viewer.