-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fetch site icon using the ID from REST API index #43514
Conversation
Size Change: +93 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
This would be an Enhancement for the Gutenberg plugin but a bug fix for WP core. |
Everything looks good to me 🙂 ✅ The site icon was displayed in the pre-publish panel. 38dcebf4673ec43d5d7766046f9f434f.mp4 |
Thanks for testing, @t-hamano!
It worked like this before; we can look into improving this behavior as a follow-up. |
This change will break the solution that was offered to #38555, won't it? By requiring an attachment post ID, plugins or themes will not be able to change the icon to a bundled asset. |
@carlomanf, correct. The The plugins/themes can still provide the default favicon using the |
Then close this branch and return to the original plan to merge #42957 to core. It will not hurt to have both REST API fields, as they serve different purposes. |
This method was recommended by @spacedmonkey, the REST API component maintainer - #42957 (comment). |
I'm sure that he would re-consider, if made aware of the issue. |
@TimothyBJacobs, I would appreciate your feedback here. Should we try and use the existing |
The choice of words here, "existing," "introduce" and "new," is misleading. The client-side handling for the |
No, |
I'm going to close this PR. We decided to go with |
What?
Follow-up #42957.
PR updates method used for fetching site icon to use ID and
getMedia
, instead of adding new REST API index.Testing Instructions