Skip to content

Conversation

@OpuRockey
Copy link
Contributor

@OpuRockey OpuRockey commented May 30, 2025

What?

Closes #70268

Why?

render_block_core_site_title function doc should be updated. Though the return type is set string, it also return null on line 20;

if ( ! trim( $site_title ) ) { return; }

How?

I have updated the doc as per return type.

Screenshots or screencast

image

@github-actions
Copy link

github-actions bot commented May 30, 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.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: OpuRockey <opurockey@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

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

@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @OpuRockey! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label May 30, 2025
@OpuRockey OpuRockey marked this pull request as draft May 30, 2025 08:06
@OpuRockey OpuRockey closed this May 30, 2025
@OpuRockey OpuRockey reopened this May 30, 2025
@OpuRockey OpuRockey closed this May 30, 2025
@OpuRockey OpuRockey reopened this May 30, 2025
@OpuRockey OpuRockey closed this May 30, 2025
@OpuRockey OpuRockey reopened this May 30, 2025
@OpuRockey OpuRockey marked this pull request as ready for review May 30, 2025 08:16
@t-hamano t-hamano added the [Type] Developer Documentation Documentation for developers label May 30, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

@t-hamano t-hamano added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label May 30, 2025
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label May 30, 2025
@Mamaduka
Copy link
Member

Maybe we should change this line and return an empty string instead:

…e -- Return empty string instead of simple return back
@OpuRockey
Copy link
Contributor Author

Maybe we should change this line and return an empty string instead:

Thank you @Mamaduka and @t-hamano for the feedback. I have updated the PR accordingly.

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @OpuRockey!

@Mamaduka Mamaduka merged commit f90febc into WordPress:trunk May 30, 2025
59 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.0 milestone May 30, 2025
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
WordPress#70269)

Co-authored-by: OpuRockey <opurockey@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render_block_core_site_title function doc has missing return type

3 participants