[wp-trac] [WordPress Trac] #58481: Mark `apply_filters()` third parameter as optional

WordPress Trac noreply at wordpress.org
Thu Jun 8 07:26:03 UTC 2023


#58481: Mark `apply_filters()` third parameter as optional
--------------------------+-----------------------------
 Reporter:  audrasjb      |      Owner:  audrasjb
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `$args` parameter of `apply_filters()` is optional. We should update
 the related Docblock description accordingly so the parameter is not
 indicated as `required` on DevHub.

 See https://developer.wordpress.org/reference/functions/apply_filters/

 Props @gilles66 for pointing this out in a DevHub comment.

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


More information about the wp-trac mailing list