[wp-trac] [WordPress Trac] #64813: Docs: Fix `@param` type for `get_posts()` and other functions using `wp_parse_args()`

WordPress Trac noreply at wordpress.org
Thu Mar 5 14:22:41 UTC 2026


#64813: Docs: Fix `@param` type for `get_posts()` and other functions using
`wp_parse_args()`
---------------------------+------------------------------
 Reporter:  rodrigosprimo  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  docs
---------------------------+------------------------------

Comment (by rodrigosprimo):

 I created a PR fixing just `get_posts()` to use `array|string` instead of
 just `array`. Happy to update the other functions if needed once a
 decision is made regarding the questions that I left in the ticket
 description.

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


More information about the wp-trac mailing list