[wp-trac] [WordPress Trac] #50216: On the bug of replace_editor

WordPress Trac noreply at wordpress.org
Thu May 21 06:09:02 UTC 2020


#50216: On the bug of replace_editor
--------------------------+-----------------------------
 Reporter:  jack960330    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I'll submit a suspected bug, replace_editor seems that editor's hook will
 load twice when loading the existing articles, which makes me have to deal
 with the code. In wp5.3, I have to use js to delete the unnecessary DOM,
 and at the same time, my katex's auto renderer cannot work properly
 (browser recognition is executed in weird mode). In wp5.4.x, because $post
 is null in this case, I can
 directly return through judgment. But this is not normal. I will send the
 message to the core channel at the same time.

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


More information about the wp-trac mailing list