[wp-trac] [WordPress Trac] #19320: wp_tiny_mce() cannot call wp_editor(), and other issues
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 23 00:26:24 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 azaozz):
Thought we were using a single internal instance of the class as described
here: http://www.php.net/manual/en/language.oop5.patterns.php#example-202
together with declaring the class `static`. That would let us use
`$this->whatever`.
Doesn't seem this forks right: `private $this_tinymce = false;` and then
from whitin a function `self::$this_tinymce = ...`
{{{
Fatal error: Access to undeclared static property:
_WP_Editors::$this_tinymce
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19320#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list