[wp-trac] [WordPress Trac] #21649: _WP_Editor class is currently marked as final

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 21 17:16:31 UTC 2012


#21649: _WP_Editor class is currently marked as final
-------------------------+------------------------------
 Reporter:  Marko-M      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by Marko-M):

 Replying to [comment:2 nacin]:
 > The reason for this change is that _WP_Editors should be re-architected
 to be a WP_Editor class that is individually instantiated for each editor.
 Right now it is a singleton, and makes avoiding OOP an art form.
 >
 > I'm -1 on just making this not final, but +1 on making it not suck for
 extensibility purposes. :-) A WP_Editor class would not be final.

 Yes I see that it's half-baked right now and I understand the reasons for
 making it final. It would be great if final class could give developers
 ability to easier get editor without WordPress releted plugins like
 wplink. Right now if you want any "link" button on quicktags this pulls in
 jquery-ui. This way _WP_Editors would be more appropriate for frontend
 (more light weight) because placing jquery-ui (wplink dependency) on
 frontend is a bit too much for some sites. I can offer help in doing the
 work on re-architecting _WP_Editors but you've done a lot of work on it
 and I guess you don't need another developer getting in the way?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21649#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list