[wp-trac] [WordPress Trac] #54139: wordpress classic editor changes code and breaks code

WordPress Trac noreply at wordpress.org
Thu Sep 16 22:24:42 UTC 2021


#54139: wordpress classic editor changes code and breaks code
--------------------------+-----------------------------
 Reporter:  devrekli      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.8.1
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello. I saw that some pictures on website are wrong.

 Example wrong image code


 {{{
 <img class="alignnone size-full wp-image-197" src="https://www.site.com
 /wp-content/uploads/dev.jpg" alt="" width="800" height="453">

 }}}

 The end of this code should be like this
 {{{
 />
 }}}


 height="453**" />**

 the editor is changing the image code and the images are giving an error.

 **When I add it for the first time, it does not give an error,** after a
 certain time, an error occurs. This is so interesting.

 I am using the classic editor.

 add_filter('use_block_editor_for_post', '__return_false');

 Then I tried the plugin but there was no solution.

 watch please

 https://youtu.be/L-fFRZxFKr8

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54139>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list