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

WordPress Trac noreply at wordpress.org
Sun Jul 14 20:13:05 UTC 2024


#61645: Wrong default value for _wp_preview_meta_filter() parameter
---------------------------+-----------------------------
 Reporter:  rodrigosprimo  |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  reviewing
 Priority:  normal         |   Milestone:  6.7
Component:  Revisions      |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  docs
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing
 * milestone:  Awaiting Review => 6.7


Old description:

> 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

New description:

 The function `_wp_preview_meta_filter()` was added as part of #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#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list