[wp-trac] [WordPress Trac] #57594: Correct type in rss_widget_feed_link filter docs

WordPress Trac noreply at wordpress.org
Tue Jan 31 19:43:56 UTC 2023


#57594: Correct type in rss_widget_feed_link filter docs
--------------------------+-----------------------------
 Reporter:  sabernhardt   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  minor         |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 In changeset:52031, the `rss_widget_feed_link` filter's DocBlock says the
 first parameter is a string. However, I had recommended returning `false`
 to remove the link.

 Mentioning both possibilities is probably enough, though I think switching
 to `__return_empty_string` would improve it (in the documentation and in
 Twenty Twenty-One).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57594>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list