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
WordPress Coding Standards are reporting that $time_string should be escaped, but esc_html, esc_attr, wp_kses_post, or wp_kses (with allowed tags) aren't practical. Is there any way to get around this (I think) false error, without introducing too much convoluted code into the theme that I'm working on? Note that this also affects Twenty Fifteen and _s, which I'm working on getting up to date with all coding standards.
The text was updated successfully, but these errors were encountered:
Consider the following code, which will output the published (and updated) time for a post:
WordPress Coding Standards are reporting that
$time_string
should be escaped, butesc_html
,esc_attr
,wp_kses_post
, orwp_kses
(with allowed tags) aren't practical. Is there any way to get around this (I think) false error, without introducing too much convoluted code into the theme that I'm working on? Note that this also affects Twenty Fifteen and _s, which I'm working on getting up to date with all coding standards.The text was updated successfully, but these errors were encountered: