You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Gist to a post (e.g. https://gist.github.com/salcode/10017553)
Save the post
View the post on the front-end
Note: This behavior does NOT occur on page reload, because the output is now stored in a transient. You'll need to delete the transient (prefix gist_html_) to cause the warning again.
The text was updated successfully, but these errors were encountered:
salcode
added a commit
to salcode/gistpress
that referenced
this issue
Nov 24, 2023
Temporarily suspend PHP Warnings on invalid tags when processing Gist
HTML by setting the libxml_use_internal_errors() value to true.
The original value for libxml_use_internal_errors() is restored when the
processing is complete.
props @Dan0sz
See bradyvercher#80Resolvesbradyvercher#81
When a Gist is retrieve from GitHub and parsed a PHP warning is thrown
Note: Once the Gist is loaded in the transient, this does not occur again.
Expected Behavior
No warning is thrown, when loading the HTML for the Gist.
Current Behavior
A warning is thrown, when loading the HTML for the Gist.
Possible Solution
Set
see #80
Steps to Reproduce (for bugs)
https://gist.github.com/salcode/10017553
)Note: This behavior does NOT occur on page reload, because the output is now stored in a transient. You'll need to delete the transient (prefix
gist_html_
) to cause the warning again.The text was updated successfully, but these errors were encountered: