Skip to content
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

Site Logo: Fix adding the site icon #40041

Merged
merged 2 commits into from
Apr 5, 2022
Merged

Site Logo: Fix adding the site icon #40041

merged 2 commits into from
Apr 5, 2022

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented Apr 5, 2022

What?

Regression introduced in the lib folder refactoring #39972.

Why?

My mistake. I didn't copy all functions correctly.

How?

I copied the missing function. I also prefixed other functions that don't start with gutenberg_ to prevent potential redeclarations when the same function would get added in WP core.

Testing Instructions

Steps to verify the fix:

  • Insert the site logo block
  • Add a site logo
  • Save and publish
  • Reload the editor

The W should be replaced by a round-rectangle site logo instead.

Regression introduced in the `lib` folder refactoring #39972.
@gziolo gziolo added Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Regression Related to a regression in the latest release labels Apr 5, 2022
@gziolo gziolo self-assigned this Apr 5, 2022
@jasmussen jasmussen self-requested a review April 5, 2022 08:03
Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

Fast work, thank you! Before, site logo isn't present:
before

After, it is:

after

Ship it! Thanks again.

@gziolo gziolo merged commit 4a7ff78 into trunk Apr 5, 2022
@gziolo gziolo deleted the fix/site-logo-hook branch April 5, 2022 08:38
@github-actions github-actions bot added this to the Gutenberg 13.0 milestone Apr 5, 2022
@mtias
Copy link
Member

mtias commented Apr 5, 2022

Thanks for the fix! It'd be good to add a test for this at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants