Title: Code auto-generating in code editor after 5.7 Update
Last modified: April 2, 2021

---

# Code auto-generating in code editor after 5.7 Update

 *  [kjwebct](https://wordpress.org/support/users/kjwebct/)
 * (@kjwebct)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/)
 * After I upgraded to WP 5.7, when I go to edit a page, the first `<a href>` tag
   in the page starts auto generating.
 * The code I wrote was: `a href="/form778379350/index.html" target="_blank"><div
   class="class-button">Enroll</div></a>`
 * Wordpress, before the update, changed it to this:
 *     ```
       <p><a href="/form778379350/index.html" target="_blank" rel="noopener"></p>
       <div class="class-button">Enroll in Investigative Programs</div>
       <p></a><a href="/form778379350/index.html" target="_blank" rel="noopener"></a></p>
       ```
   
 * And after the update, when I click on the code editor, you can watch it just 
   auto-generate line after line of `<a href="/form778379350/index.html" target="
   _blank" rel="noopener"></a>` On other pages it’s throwing in line after line 
   of `<p></p>` when I click on the editor. I can’t edit any of my pages. Any suggestions?
    -  This topic was modified 5 years, 2 months ago by [kjwebct](https://wordpress.org/support/users/kjwebct/).
    -  This topic was modified 5 years, 2 months ago by [kjwebct](https://wordpress.org/support/users/kjwebct/).

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14273582)
 * Try using the browser on incognito mode. See if it happens there.
 * If not, then it’s some extension adding spam to your browser.
 *  Thread Starter [kjwebct](https://wordpress.org/support/users/kjwebct/)
 * (@kjwebct)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14278447)
 * [@otto42](https://wordpress.org/support/users/otto42/), happened in incognito
   mode too. I have a video showing what happens when I try to edit a page. [https://youtu.be/iEkmQPZiyPM](https://youtu.be/iEkmQPZiyPM)(
   This was in incognito mode).
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14278536)
 * Yeah, try using a different browser entirely. I’d say that you have some kind
   of spam software on your PC adding those.
 *  Thread Starter [kjwebct](https://wordpress.org/support/users/kjwebct/)
 * (@kjwebct)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14278621)
 * [@otto42](https://wordpress.org/support/users/otto42/), Still happens in Edge
   and Firefox.
 *  Thread Starter [kjwebct](https://wordpress.org/support/users/kjwebct/)
 * (@kjwebct)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14278710)
 * Also switched themes and disabled all the plugins. Still same problem.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14278825)
 * Try using a different computer entirely then. Malware on your machine can do 
   all sorts of stuff.
 * But basically, you need to find the malware and deal with it directly. The problem
   is not in WordPress, it’s in whatever you have adding that spam.
 *  Thread Starter [kjwebct](https://wordpress.org/support/users/kjwebct/)
 * (@kjwebct)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14279081)
 * [@otto42](https://wordpress.org/support/users/otto42/), It’s still happening 
   when I use a different computer.
    -  This reply was modified 5 years, 2 months ago by [kjwebct](https://wordpress.org/support/users/kjwebct/).
 *  Anonymous User 17160716
 * (@anonymized-17160716)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14280255)
 * **kjwebct**, hi there.
 * Try this, step-by-step:
    0 – disable all plugins; 1 – temporarily change the 
   current theme to any of Twenty*; 2 – delete the whole /cache/* directory; 3 –
   try to re-install WordPress 5.7 (go to [https://spectortraining.org/wp-admin/update-core.php](https://spectortraining.org/wp-admin/update-core.php)
   page and click on “Re-install version 5.7” button) or do it manual; 4 – check
   your website.
 * After that, check the developer console in the browser when you view the problematic
   page with the auto-generated code (like in the video). I’m sure some errors will
   be displayed in the console.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14280352)
 * This topic is mentioned in a Gutenberg issue: [https://github.com/WordPress/gutenberg/issues/29988#issuecomment-813612076](https://github.com/WordPress/gutenberg/issues/29988#issuecomment-813612076)

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

The topic ‘Code auto-generating in code editor after 5.7 Update’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/code-auto-generating-in-code-editor-after-5-7-update/#post-14280352)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
