hook_user('view) requires that implementors key their items for the benefit of themes that want to identify an item. but user_user() breaks that rule in its 'member for' item. see 1 line patch attached.

note that this has already been fixed in HEAD, so this patch is for 4.7. this patch doesn't affect any core code - just make theme_user_profile() work as designed. thus, i set to RTBC.

CommentFileSizeAuthor
#3 patch_1282.5 KBmoshe weitzman
#1 patch_1272.05 KBmoshe weitzman
patch_126695 bytesmoshe weitzman

Comments

moshe weitzman’s picture

StatusFileSize
new2.05 KB

forgot that profile and blog are also guilty. patch is now 3 lines.

moshe weitzman’s picture

Title: missing key in user_user() » missing key in hook_user('view') implementations
moshe weitzman’s picture

Status: Reviewed & tested by the community » Closed (works as designed)
StatusFileSize
new2.5 KB

um, user_view() really needs changes too in 4.7. see attached.

i withdraw this patch from core consideration, since it veers too far toward feature request. the patch can stay for those who need it.