-
Notifications
You must be signed in to change notification settings - Fork 3
html in error messages displayed #107
Comments
Probably a parsing error, good catch. If you can provide a theme that generated that, that would be great 🙂 |
here's twentyninteen the example code from https://developer.wordpress.org/reference/functions/add_menu_page/ added for testing: twentynineteen.zip |
added a7b6ae1 to check for iframe before output |
I guess there was a reason after all for futting |
Merged the PR and it works 👍 Thanks! |
Ah, yeah that makes sense - I'll have to take a look at what all the messages are actually outputting to come up with a solution. I didn't give thought to if/when HTML is being output from other sniffs. I'm not sure why that one message includes HTML around the function either since the rest don't seem to do that. |
Maybe we could strip tags before outputting the message? |
So it's just that the messaging to the user is sometimes wanting HTML and most times should show HTML? |
Stripped in the theme sniffer 🙂 so that we don't have html in the output. I should have been more precise |
That was my point: sometimes it is correct to have HTML in the output. The message should not be stripped since it can contain HTML that is part of the message. If you strip the HTML out, the message doesn't convey the correct thing. I think the fix that already went in for this was the wrong fix. The fix should have been to remove the |
yes I agree with @joyously - especially given that no other messages really appear to be wrapping things in HTML - that one should definitely follow suit. Sent over PR for WPThemeReview |
This has been fixed? |
the upstream has been for that message - I was using some HTML for some things in the license check messages though. Since we control the output of the messages we create, I think we can look at |
The text was updated successfully, but these errors were encountered: