-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Post Template returns empty string when no results found #36224
Comments
Related: #29521 |
Also related: #33476 |
I think this issue should be part of a bigger drive to make the "no results" state configurable. Here are two issues that raise this:
I threw up #38437 in haste, thinking that showing a message on the frontend, one that is consistent with the editor experience, would be a good thing. But upon reflection I asked myself whether displaying text that isn't editable is something that might irk users, and also go against the spirit of theme editor. Do you think it might be best to wait until we deliver an editable solution? |
Can this issue be closed as fixed by #38806 ? |
I think that'll work, thanks! |
Description
I expected
index.php
to returnNo results found
likeedit.js
does, but it returns an empty string.gutenberg/packages/block-library/src/post-template/index.php
Lines 39 to 41 in 9a2ae8d
gutenberg/packages/block-library/src/post-template/edit.js
Lines 143 to 145 in 9a2ae8d
Step-by-step reproduction instructions
search.html
template w/ the following:/?s=supercalifragilisticexpialidocious
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: