[wp-trac] [WordPress Trac] #63790: Incorrect return tag in DocBlock for block_core_image_get_lightbox_settings()

WordPress Trac noreply at wordpress.org
Tue Aug 5 16:06:26 UTC 2025


#63790: Incorrect return tag in DocBlock for
block_core_image_get_lightbox_settings()
--------------------------+-----------------------------
 Reporter:  marian1       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  trivial       |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The documented return type is `array` (`@return array Filtered block
 data.`), but `block_core_image_get_lightbox_settings()` may also return
 `null`.

 The `@return` annotation should be updated to `@return array|null` to
 reflect the actual return types.

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


More information about the wp-trac mailing list