Opened 15 years ago
Closed 15 years ago
#19648 closed defect (bug) (fixed)
mce_external_languages/plugins prints twice
| Reported by: | Cyapow | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | TinyMCE | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When adding a language using the 'mce_external_languages' filter the contents get printed for each external plugin loaded.
to fix wp-includes/class.wp-editor.php line 210 add
self::$ext_plugins .= $ext_plugins;
same file line 212 add
$ext_plugins = '';
(first one goes before the foreach loop and the second goes at the beginning of the loop)
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Also: #20030 and 20030.diff
Bug can be replicated for external plugins with:
function trac20030_mce_external_plugins( $plugins ) { $plugins['myplugin1'] = WP_PLUGIN_URL . '/myplugin1.js'; $plugins['myplugin2'] = WP_PLUGIN_URL . '/myplugin2.js'; return $plugins; } add_filter( 'mce_external_plugins', 'trac20030_mce_external_plugins' );