]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/capabilities.php
Wordpress 2.0.4
[autoinstalls/wordpress.git] / wp-includes / capabilities.php
index b5cea726bf9b6ff9045bda613590409bf3fc685b..de9963174403bbdc43ad68ab4c9b7292875b1a62 100644 (file)
@@ -309,7 +309,7 @@ function map_meta_cap($cap, $user_id) {
 
 // Capability checking wrapper around the global $current_user object.
 function current_user_can($capability) {
-       global $current_user;
+       $current_user = wp_get_current_user();
 
        $args = array_slice(func_get_args(), 1);
        $args = array_merge(array($capability), $args);