[wp-trac] [WordPress Trac] #51050: Docs: Add docblock for get_the_archive_title() filter

WordPress Trac noreply at wordpress.org
Tue Aug 18 11:55:01 UTC 2020


#51050: Docs: Add docblock for get_the_archive_title() filter
-----------------------------------+------------------------------
 Reporter:  justinahinon           |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Themes                 |     Version:  5.5
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  docs
-----------------------------------+------------------------------
Changes (by audrasjb):

 * keywords:  has-patch => has-patch 2nd-opinion
 * focuses:  docs, template => docs
 * milestone:  5.5.1 => Awaiting Review


Comment:

 Thanks for opening the ticket, @justinahinon,

 By the way, this filter is actually properly documented:
 https://developer.wordpress.org/reference/hooks/get_the_archive_title/

 "@since 5.5.0 Added the `$prefix` and `$original_title` parameters."

 I guess you're rather talking about `get_the_archive_title` **function**.

 In 51050.diff, I added an @since mention, but not completely sure it's
 necessary as the filter is already documented. I'd defer on
 @SergeyBiryukov ’s judgement for that :)

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


More information about the wp-trac mailing list