[wp-trac] Re: [WordPress Trac] #3882: An error commented in forums:
tinyMCE not defined
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 5 22:50:04 GMT 2007
#3882: An error commented in forums: tinyMCE not defined
--------------------------+-------------------------------------------------
Reporter: josegonzalez | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.2
Component: TinyMCE | Version: 2.1.1
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by alexrabe):
Today I figure out that also a Linux/Debian (PHP 4.4.5) contains the
realpath problem.
This small test didn't return a FALSE :
{{{
$x = realpath('/bad/path'); var_dump($x);
}}}
A workaround in tiny_mce_gzip.php for the realpath problem could be :
{{{
$plugins = explode(",", $plugins);
foreach ($plugins as $plugin) {
if ($plugin != '') {
$pluginFile = real_path("plugins/" . $plugin .
"/editor_plugin" . $suffix . ".js");
/* WP $languageFile = realpath("plugins/" . $plugin .
"/langs/" . $lang . ".js"); WP */
if ($pluginFile)
TinyMCE_echo(file_get_contents($pluginFile));
/* WP if ($languageFile) WP */
TinyMCE_echo(wp_tinymce_lang("plugins/" . $plugin .
"/langs/%s.js")); // WP
} //avoid realpath problem
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3882#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list