[wp-trac] [WordPress Trac] #55978: Adding optional post parameter to get_the_modified_author function
WordPress Trac
noreply at wordpress.org
Fri Oct 24 04:02:20 UTC 2025
#55978: Adding optional post parameter to get_the_modified_author function
-------------------------------+--------------------------
Reporter: samirmalpande | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Posts, Post Types | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"61057" 61057]:
{{{
#!CommitTicketReference repository="" revision="61057"
Posts, Post Types: Update `get_the_modified_author()` to handle missing
global `$post` and add (missing) `$post` arg.
The addition of the `$post` argument (which defaults to the global post)
brings `get_the_modified_author()` in line with other similar functions,
including `get_the_modified_date()` and `get_the_modified_time()`.
Props Cornwell, jdahir0789, dhruvang21, Presskopp, mindctrl,
samirmalpande, audrasjb, johnbillion, SergeyBiryukov, desrosj, costdev,
mukesh27, westonruter.
Fixes #64104, #55978.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55978#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list