Title: Code Changes When You Save or Publish
Last modified: August 18, 2016

---

# Code Changes When You Save or Publish

 *  [gtaggart](https://wordpress.org/support/users/gtaggart/)
 * (@gtaggart)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/code-changes-when-you-save-or-publish/)
 * Hey,
 * I’ve experienced an occasional problem with code. For example, I’ve cut and pasted
   Amazon.com link code into a post in case someone wants to buy a book I’m talking
   about. Then I save or publish the post, and the code changes subtely, so the 
   link doesn’t work as it should.
 * It also happens when I embed YouTube code into a post. It always works fine the
   first time I post, but when I edit the post to fix a misspelling or some punctuation,
   the code–which I haven’t touched or even come close to touching–changes, so the
   video disappears and all that is left is the empty space with the video was and
   one of those little “x’s” in the upper left hand corner.
 * Any idea how to solve this ongoing problem?

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

 *  [vince2006](https://wordpress.org/support/users/vince2006/)
 * (@vince2006)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/code-changes-when-you-save-or-publish/#post-579632)
 * Are you using IE?
 * I had this issue. Try first going to your profile and turning off your rich text
   editor function. Then re-paste the code and see if this works.
 * If it doesn’t, watch out for embed tags and object tags. If these are the ones
   causing the problem, check what version of Java you are using. I had to downgrade
   to 1.5.0 to stop the error you had from happening on my production pc.
 * Hope this helps.
 * Vince
 *  Thread Starter [gtaggart](https://wordpress.org/support/users/gtaggart/)
 * (@gtaggart)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/code-changes-when-you-save-or-publish/#post-579692)
 * Yes. If I use Firefox, will that solve the problem? I know Firefox avoids another
   IE problem, the “Stack overflow in line 1585” problem.
 * Thanks for your help. I’ll see if it helps.
 * Anyone else have a better solution?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/code-changes-when-you-save-or-publish/#post-579703)
 * The basic rule is: disable, turn off the rich text editor (visual, wysiwyg) if
   you want to put code in posts.

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

The topic ‘Code Changes When You Save or Publish’ is closed to new replies.

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)
 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 12 months ago](https://wordpress.org/support/topic/code-changes-when-you-save-or-publish/#post-579703)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
