Opened 13 years ago
Closed 13 years ago
#14635 closed defect (bug) (wontfix)
tinyMCE - loading language files of external plugins not working if file_get_contents is disabled
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | TinyMCE | Keywords: | tinymce, external plugins, language file, file_get_contents |
Focuses: | Cc: |
Description
On our server the function "file_get_contents" is disabled for security reasons.
In my case i wanted to add the plugin "table" to the tinyMCE. I uploaded everything in the right folders and used the filters "mce_external_plugins", "mce_buttons_3" and "mce_external_languages" in the right way. Because the "foreach" in file "/wp-admin/includes/post.php", line 1403 couldn't load the contents of the language file, because of the disabled function explained above, no language strings where shown.
To avoid this, i suggest to change line 1440 (same file) to:
if ( ! empty($strings) )
$ext_plugins .= 'tinyMCEPreInit.load_ext("' . $plugurl . '", "' . $mce_locale . '");' . "\n";
So in this case, the tinyMCE ScriptLoader doesn't mark the language-file as "done" and loads it correct. Everthing works fine and the language strings where shown.
Disabling
file_get_contents();
is insane, Disabling external http file wrappers is done by many hosts, however I've never seen a real reason for this case..I'm closing as wontfix.