-
Notifications
You must be signed in to change notification settings - Fork 12
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
Script tag are being stripped out on VIP Platform #60
Comments
There isn't any fixing it. That's quite intentional and non-modifiable behavior for security reasons. Can you explain in more detail what you're trying to do and provide a code snippet? Thanks. |
Hi @bcampeau , Ok, so when I am using the ad-layer in the sidebar using widget, on rendering it shows. (I am pasting the HTML here, so that it is clear. )
<script > tag missing here. (It has been stripped out as I mentioned earlier because of wp_kses filter)
Hope it is clear now. It is a issue, Meanwhile I am also working on it, and will send a fix, if I can debug it first. |
Hi @bcampeau : For myself, I have fixed this issue by reverting ad-layers back on the checkout id "aba3ab4". Previously I was on master. Now You can check on why has broke it in master. If I have time, I will also check the changes. |
To confirm, are you using the widget that's built into the plugin or some other widget? |
Hi Bradford,
I am using the built-in widget of the plugin. (No customization's to the
plugin at all)
*Thanks & Regards :*
*Arvind Kala*
…On Thu, Feb 9, 2017 at 10:12 PM, Bradford Campeau-Laurion < ***@***.***> wrote:
To confirm, are you using the widget that's built into the plugin or some
other widget?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHmNmlN5rmoZZ2zQsXHP42vc2p-gzFwPks5ra0HZgaJpZM4L7G2z>
.
|
While serving the ad-layers through widgets, script tag is being stripped out, leaving the javascript code to be displayed on the site. How can we fix or is there something I am doing wrong ?
Cause : In plugins/ad-layers/php/class-ad-layers-widget.php , on line no.50 "wp_kses_post" is stripping the <script tag>.
How to resolve that ?
The text was updated successfully, but these errors were encountered: