Skip to content

Narrow return type for categories block functions #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2025

Conversation

IanDelMar
Copy link
Contributor

build_dropdown_script_block_core_categories() returns wp_get_inline_script_tag() which returns a non-falsy-string (#311).

render_block_core_categories() returns sprintf($wrapper_markup, $wrapper_attributes, $items_markup); with non-falsy $wrapper_markupand therefore returns a non-falsy-string.

@szepeviktor
Copy link
Member

the Perpetual Hunter of Unused WordPress Functions

@szepeviktor szepeviktor merged commit cbe488c into php-stubs:master Aug 21, 2025
7 checks passed
@IanDelMar
Copy link
Contributor Author

😃 I'll get them all! 😃

@IanDelMar IanDelMar deleted the block_core_categories branch August 21, 2025 16:03
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.

2 participants