[wp-trac] [WordPress Trac] #55693: TinyMCE WordPress plugin contains unnecessary code

WordPress Trac noreply at wordpress.org
Sat May 7 08:08:56 UTC 2022


#55693: TinyMCE WordPress plugin contains unnecessary code
-------------------------+-----------------------------
 Reporter:  MattyRob     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I hope I am correct here, I have been tracking through a long trail of
 changes, but...

 Changeset 43336 added some line breaks corrects implemented in the case
 that `hasWpautop` evaluated to false.

 This seems to have been linked to the
 `gutenberg_disable_editor_settings_wpautop` function in the Gutenberg
 plugin at version 2.7, but is seems this same function was removed in
 Gutenberg 5.2.0.

 A shim for this was added and then removed in Gutenberg itself, the
 removal once 4336 was merged to WordPress.

 So, my question / issue is, is it time to remove 43336 from the core
 WordPress code?

 References to some useful links that support the above are listed below.

 https://core.trac.wordpress.org/changeset/43336
 https://core.trac.wordpress.org/ticket/44308
 https://github.com/WordPress/gutenberg/issues/6385
 https://github.com/WordPress/gutenberg/blob/trunk/docs/contributors/code/deprecations.md
 https://github.com/WordPress/gutenberg/pull/7373/files
 https://github.com/WordPress/gutenberg/pull/8832/files

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


More information about the wp-trac mailing list