theme_uc_uid() is now just a thin wrapper around '#theme' => 'username'. Visually as well as in the raw HTML the output is identical. theme_uc_uid() doesn't provide any additional functionality except for outputting a '-' if the uid is not passed in, and we never use that functionality.

Better to rely on the core function to ensure consistent output and to reduce Ubercart-specific code.

CommentFileSizeAuthor
#2 uc_uid.patch6.18 KBtr
uc_uid.patch5.97 KBtr

Comments

TR created an issue. See original summary.

tr’s picture

StatusFileSize
new6.18 KB
longwave’s picture

The '-' showed up instead of 'Anonymous' or whatever uid 0 shows up as; I think this is used by admin/order comments created by e.g. payment gateways as they don't really belong to a user. Still, we could handle this in the comment display controller rather than having a theme function for it, if this turns out to be a problem.

The last submitted patch, uc_uid.patch, failed testing.

longwave’s picture

Still happy to get this committed and deal with any fallout later.

  • longwave committed bcc7449 on 8.x-4.x authored by TR
    Issue #2666782 by TR: Remove theme_uc_uid()
    
longwave’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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