id ) )
return false;
$user_id = $user->id;
}
return is_super_admin( $user_id );
}
if ( !function_exists('graceful_fail') ) :
/**
* @deprecated 3.0
*/
function graceful_fail( $message ) {
_deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
$message = apply_filters('graceful_fail', $message);
$message_template = apply_filters( 'graceful_fail_template',
'
Error!
%s
' );
die( sprintf( $message_template, $message ) );
}
endif;
/**
* @deprecated 3.0
*/
function get_current_user_id() {
_deprecated_function( __FUNCTION__, '3.0', '' );
global $current_user;
return $current_user->ID;
}
/**
* @deprecated 3.0
*/
function get_user_details( $username ) {
_deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' );
return get_user_by('login', $username);
}
/**
* @deprecated 3.0
*/
function clear_global_post_cache( $post_id ) {
_deprecated_function( __FUNCTION__, '3.0', 'clean_post_cache' );
}
?>