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
# Match all image attributes
$attributes = 'src|srcset|longdesc|alt|class|id|usemap|align|border|hspace|vspace|crossorigin|ismap|sizes|title|onmouseover|onmouseout|onclick|onkeypress|style|width|height';
…
# Recreate the image tag with dimensions set
$tag = sprintf( '<img src=%s%s%s%s%s%s%s%s%s%s%s
Please apply the fix and test locally. Once it works out, then push to production and apply bug fix credit.
WordPress user (Sandra) found a bug that make some attributes disappear. So this code turns out like this:
Here is the fix she provided:
…
Please apply the fix and test locally. Once it works out, then push to production and apply bug fix credit.
Reference: https://wordpress.org/support/topic/removes-javascript-events-on-img-tags/
The text was updated successfully, but these errors were encountered: