Follow-up to #2422353: Comment module should check that comment body field exists
Problem/Motivation
CommentAdminOverview uses deprecated drupal_render() in controller code but should return alterable render array. This causes breakage of caching.
Proposed resolution
Return a render array instead of rendering comment author.
Remaining tasks
patch/commit
User interface changes
no
API changes
no
Beta phase evaluation
| Issue category | Bug because uses rendering in controller code |
|---|---|
| Issue priority | Normal because it's leftover code from 7.x |
| Disruption | Non-disruptive for core/contributed and custom modules/themes |
| Comment | File | Size | Author |
|---|---|---|---|
| comment-admin-user.patch | 1.29 KB | andypost |
Comments
Comment #1
larowlanNice find
Comment #4
andypostwas a bot lux
Comment #5
wim leersHurray, this helps make #2450993: Rendered Cache Metadata created during the main controller request gets lost a tad easier/smaller :)
Comment #6
fabianx commentedRTBC + 1
Comment #8
wim leersSuddenly two fails? Weird. Both in browser tests. Seems like unrelated failures, I don't see how this patch could cause that. Back to RTBC, and re-testing.
Comment #10
alexpottNice find indeed - we probably should have a meta trying to remove as many calls (or document them) to drupal_render.*() as possible.
Committed bd13994 and pushed to 8.0.x. Thanks!
Comment #12
martin107 commentedCreated a meta issue.
#2509534: [Meta] document or refactor calls to drupal_render()