Title: WordPress Automatically Removing Script &#8211; Sometimes
Last modified: March 27, 2017

---

# WordPress Automatically Removing Script – Sometimes

 *  Resolved [abarr](https://wordpress.org/support/users/abarr/)
 * (@abarr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-automatically-removing-script-sometimes/)
 * I have an issue where occasionally wordpress seems to modify a page to remove
   a small script. This starting happening around last November, and occurs infrequently,
   but when it does, it happens several times on the same page. After a few cycles
   of reinserting the script (and having it deleted), it seems to stick around. 
   This isn’t a case of switching back and forth with text/visual view either – 
   which is the only other reference I can find online. Its there working fine, 
   then with nobody in the backend, the script just disappears.
 * I can view side by side revisions, it registers whatever user put the script 
   in, then the next revision it will be missing and there is no user associated
   with the removal.
 * The script is just a link to an external site which build a booking widget to
   integrate with our sales software. We appear to be the only ones with issues.
 * Any help or suggestions would be much appreciated.
 * ![Script Deleting Example](https://i0.wp.com/www.arcclimbing.ca/scriptDeleting.
   png)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * (@supporthero)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-automatically-removing-script-sometimes/#post-8959132)
 * This is normal behavior for WordPress. Certain scripts are removed by text editor
   for security. In order to include scripts inside a page or post editor, you need
   to use a plugin that allows you to save your script to database and display it
   on a page/post using a shortcode.
 * You can check out this plugin that will do the job:
    [https://en-ca.wordpress.org/plugins/insert-html-snippet/](https://en-ca.wordpress.org/plugins/insert-html-snippet/)
 * ^V
 *  Thread Starter [abarr](https://wordpress.org/support/users/abarr/)
 * (@abarr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-automatically-removing-script-sometimes/#post-8967722)
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress Automatically Removing Script – Sometimes’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [abarr](https://wordpress.org/support/users/abarr/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/wordpress-automatically-removing-script-sometimes/#post-8967722)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
