Updated: Comment #N
Problem/Motivation
What user_node_load() does is already marked as deprecated and it executes a query for something that you shouldn't use and the current implementation of #597236: Add entity caching to core can't cache.
We have $node->author during rendering as the @todo says, and we have getAuthor() and getAuthorId() on the interface.
Let's see if something still needs it.
Proposed resolution
Remove it, see what happens.
Remaining tasks
User interface changes
API changes
$node->name goes away.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user-node-load-2164715-1.patch | 1.05 KB | berdir |
Comments
Comment #1
berdirAnd here's a patch. No idea if this will work already.
Comment #2
jibranPlain and simple.
Comment #3
webchickYay, less code!
Committed and pushed to 8.x. Thanks!