[wp-trac] [WordPress Trac] #55978: Adding optional post parameter to get_the_modified_author function

WordPress Trac noreply at wordpress.org
Wed Jun 15 10:02:59 UTC 2022


#55978: Adding optional post parameter to get_the_modified_author function
-------------------------------+---------------------
 Reporter:  samirmalpande      |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  6.1
Component:  Posts, Post Types  |     Version:  2.8
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------

Comment (by SergeyBiryukov):

 Should `get_the_author()` get the same parameter for consistency?

 It used to have an `$idmode` parameter, which was deprecated in [4146] /
 #2386. Since it only accepted a string, I think we should be able to un-
 deprecate and use it if an integer post ID or a `WP_Post` object is
 passed. There is a precedent for something like this, see [47366] /
 #48772.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55978#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list