[wp-trac] [WordPress Trac] #61139: Add an optional $post parameter to get_the_title_rss() the same way get_the_title() works

WordPress Trac noreply at wordpress.org
Sat May 4 19:10:15 UTC 2024


#61139: Add an optional $post parameter to get_the_title_rss() the same way
get_the_title() works
--------------------------------------+-----------------------------
 Reporter:  oglekler                  |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.6
Component:  Feeds                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58096" 58096]:
 {{{
 #!CommitTicketReference repository="" revision="58096"
 Feeds: Add an optional `$post` parameter to `get_the_title_rss()`.

 This allows the function to be used outside of the loop and brings parity
 with `get_the_title()`.

 Follow-up to [1976], [3314], [21735].

 Props khokansardar, oglekler.
 Fixes #61139.
 }}}

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


More information about the wp-trac mailing list