[wp-trac] [WordPress Trac] #55420: Warning thrown by method get_the_modified_author if author was removed
WordPress Trac
noreply at wordpress.org
Fri Apr 15 13:45:41 UTC 2022
#55420: Warning thrown by method get_the_modified_author if author was removed
---------------------------+-----------------------------
Reporter: juanlopez4691 | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: administration
---------------------------+-----------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"53187" 53187]:
{{{
#!CommitTicketReference repository="" revision="53187"
Users: Avoid warning on `the_modified_author` when `get_userdata()`
returns `false`.
This change adds a check of the value returned by `get_userdata()` before
using it in `get_the_modified_author()`. It avoids a warning when
retrieving the last author who edited the current post.
Props juanlopez4691, mukesh27.
Fixes #55420.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55420#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list