$user is utilized in template_preprocess() to provide $variables['logged_in'].

Why not pass the entire user? As a theme developer, I find I have need for that information often enough that it probably should just come along by default and be provided to all theme functions.

CommentFileSizeAuthor
add_user_to_preprocess.patch288 bytesdavideads

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

I guess this saves themers from figuring out relative mumbo jumbo like $GLOBALS['user']

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

OK, committed. Please provide unified diffs in the future. (diff -u)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.