Skip to content

Media: Fix return type annotation for block_core_image_get_lightbox_settings()#9393

Closed
himanshupathak95 wants to merge 1 commit intoWordPress:trunkfrom
himanshupathak95:fix/63790
Closed

Media: Fix return type annotation for block_core_image_get_lightbox_settings()#9393
himanshupathak95 wants to merge 1 commit intoWordPress:trunkfrom
himanshupathak95:fix/63790

Conversation

@himanshupathak95
Copy link
Copy Markdown

@himanshupathak95 himanshupathak95 commented Aug 5, 2025

Trac ticket: https://core.trac.wordpress.org/ticket/63790

This PR fixes the incorrect @return annotation in block_core_image_get_lightbox_settings().

The function can return null when lightbox settings are not found, but the DocBlock only documents array as the return type. This PR updates the annotation to @return array|null to accurately reflect the actual return behavior.

@himanshupathak95 himanshupathak95 marked this pull request as ready for review August 5, 2025 16:32
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 5, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props abcd95.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@himanshupathak95
Copy link
Copy Markdown
Author

Closing this as completed via WordPress/gutenberg#71073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant