[wp-trac] [WordPress Trac] #61645: Wrong default value for _wp_preview_meta_filter() parameter

WordPress Trac noreply at wordpress.org
Fri Jul 12 13:15:56 UTC 2024


#61645: Wrong default value for _wp_preview_meta_filter() parameter
---------------------------+-----------------------------
 Reporter:  rodrigosprimo  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Revisions      |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  docs           |
---------------------------+-----------------------------
 The function `_wp_preview_meta_filter()` was added as part of
 https://core.trac.wordpress.org/ticket/20299. There is a small mistake in
 the docblock for the `$single` parameter. The docblock says that the
 default value for this parameter is `false`, but this parameter has no
 default value:

 https://github.com/WordPress/wordpress-
 develop/blob/ad135d5f0ac9cf0494da92fcf4235672868a1ff4/src/wp-
 includes/revision.php#L1110

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


More information about the wp-trac mailing list