Make WordPress Core


Ignore:
Timestamp:
05/28/2007 06:34:06 PM (17 years ago)
Author:
ryan
Message:

Better draft, private, and future post/page management from mdawaffe. fixes #3945

File:
1 edited

Legend:

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

    r4825 r5575  
    446446    $current_user = wp_get_current_user();
    447447
     448    if ( empty($current_user) )
     449        return false;
     450
    448451    $args = array_slice(func_get_args(), 1);
    449452    $args = array_merge(array($capability), $args);
    450 
    451     if ( empty($current_user) )
    452         return false;
    453453
    454454    return call_user_func_array(array(&$current_user, 'has_cap'), $args);
Note: See TracChangeset for help on using the changeset viewer.