-
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
Site Logo block: Only request media entity when we have a site logo chosen #31673
Conversation
Size Change: +5 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected. I don't see 404 anymore.
P.S. I don't think failing e2e test is related to this PR.
6483d08
to
8185901
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to reproduce the problem and the PR solves it for me.
8185901
to
0bfec8e
Compare
Description
Site Logo fires a request that always result in a 404:
http://localhost:8888/index.php?rest_route=%2Fwp%2Fv2%2Fmedia%2Fnull&context=edit&_locale=user
Notice the
null
in the URL.This PR simply skips the
getEntityRecord
selector when thesitelogo
is empty.How has this been tested?
rest_route=%2Fwp%2Fv2%2Fmedia
trunk
then you will see a request with a 404 response)Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).