The plugin does not do anything to specifically remove javascript, and that doesn’t make sense either. If you provide a block of sample code I can test it and see – are you saying it is being removed at expire time or at post time?
Thread Starter
Alicia
(@sexydawnt)
At post time – or sometimes a few minutes after post time. Whenever I click publish on any post that uses javascript, something is stripping out the javascript tags. I disabled every plug-in I had and re-enabled them one at a time. It turned out to be this one. Then, I re-enabled every plug-in except this and the problem went away. The issue only occurs when this plug-in is enabled.
So, here is a post I was having a problem with
http://www.freenclearstuff.com/phase-foot-care-duo-giveaway/
The entry form for the giveaway is on the page.
The embed code is supposed to look like this:
<div id="pgt516627321pgt" class="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">Entry</a><script type="text/javascript" src="//giveawaytools.com/wid/embed.php?sk=516627321"></script><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div>
However, when Post Expirator is active, it looks like this:
<div id="pgt516627321pgt" class="pgtContainpgt"><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">Entry</a><a href="http://giveawaytools.com/giveaway.php?sk=516627321" rel="nofollow" target="_BLANK2">-Form</a></div>
It does the exact same thing with RaffleCopter as well, and one other giveaway platform that required embedding javascript code. It also has done it with a couple of my sponsors that have a javascript embed I place in posts about their products.
Thread Starter
Alicia
(@sexydawnt)
Have you been able to look into this?
Briefly – I can confirm the issue and it is related to kses. I will need to think through the best way to move forward with this one.
I’m having the exact same problem as SexyDawnT. Whenever a post expires it removes the following code in every post:
<script type="text/javascript"></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Any suggestions how can I avoid this from happening? I don’t want to uninstall it since this plugin is very helpful and does exactly what I need.
I believe I have a fix for this that will be in the 2.0 release (waiting to confirm its the best way to handle it) – hope to have that out in the not to distance future.
Thread Starter
Alicia
(@sexydawnt)
Thanks so much! I’ve been using a different plug-in, but it has serious problems and the dev abandoned the project a long time ago. I will definitely be switching back once yours is up and running. Thank you for all the help.