[wp-trac] [WordPress Trac] #19320: wp_tiny_mce() cannot call wp_editor(), and other issues
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 22 21:40:26 UTC 2011
#19320: wp_tiny_mce() cannot call wp_editor(), and other issues
-----------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 3.3
Component: Editor | Version: 3.3
Severity: blocker | Resolution:
Keywords: |
-----------------------------+------------------
Comment (by nacin):
Suggested fixes:
* WP_Editor becomes _WP_Editors.
* Class becomes final.
* Constructor becomes private and made into a proper singleton. All
methods are made static. Most methods and variables are made private.
Method calls should be changed to use the paamayim nekudotayim (::, of
course).
* The default value for the tinymce setting should be `null`. If it
remains === null, then it should be set to user_can_richedit().
* wp_fullscreen_html(), wp_link_dialog(), and wp_link_query() are brought
back for backwards compatibility reasons, undeprecated for now. They can
wrap the current static functions. They can check ! class_exists(
'_WP_Editors' ) to ascertain whether the file needs to be included.
* Anything necessary from [attachment:19320.patch] goes in.
* Action callbacks become array( '_WP_Editors, 'method_name' ), rather
than $this. The $wp_editor global is destroyed entirely.
I'm being very thorough here. There really isn't much work to make this
happen. If azaozz can merge in [attachment:19320.patch] then I will work
around that to implement the rest ASAP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19320#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list