-
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
Improve treatment of the "Template Part Not Found" message #37222
Comments
@kjellr I made an issue related to this too - #36510, it might be possible to close one of them as a duplicate. The message doesn't seem to work when I test it, but maybe that depends on what kind of template part it is (file vs post). It looks like I'm testing the latter and you're testing the former. |
BTW, my instinct was that the block could show its placeholder instead of the message so that a user can at least pick a different template part, but there might be other options. |
Hmm. These seem similar, but might be slightly different? In the case here, I'm mostly concerned about these messages showing up to front-end visitors. |
Yes, I didn't quite catch that this was on the front-end of the site. 👍 Do you think this should be fixed for 5.9? My feeling is that it probably should be, so I'll add it to the project board. |
Yeah, I think it should be. Thank you! |
@kjellr, PR is ready for the review :) |
When there's an error with a theme's template part, the site displays a message like this:
This is helpful for development, but it's also a very confusing thing to show to users. Can we adjust this so that it fails more gracefully? (In my testing, this message appears whether or not
WP_DEBUG
is on or off)The text was updated successfully, but these errors were encountered: