#4118 closed defect (bug) (fixed)
tinymce language pack loading fails if no locale is defined
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | TinyMCE | Version: | 2.1 |
| Severity: | major | Keywords: | has-patch |
| Cc: |
Description
If there is no locale defined, the TinyMCE language setting is empty, which leads to incorrectly generated paths for plugin language packs. The attached patch sets it to "en", which is the TinyMCE default value.
I'm marking this as major because it affects to various degrees all TinyMCE plugins that use language packs (between localization not working and meltdown - in my case it disabled the post publishing i.e. meltdown).
Attachments (2)
Change History (14)
- Resolution set to fixed
- Status changed from new to closed
- Milestone changed from 2.1.4 to 2.2
- Resolution fixed deleted
- Status changed from closed to reopened
now for 2.2
- Resolution set to fixed
- Status changed from reopened to closed
comment:5
foolswisdom — 6 years ago
- Milestone changed from 2.2 to 2.1.4
- Version set to 2.1
comment:6
Viper007Bond — 6 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This is throwing a PHP error on my local install:
Fatal error: Can't use function return value in write context in ...\wp-includes\js\tinymce\tiny_mce_config.php on line 52
I've attached a patch that should fix that problem: I think the argument passed to empty has to be a variable.
- Resolution set to fixed
- Status changed from reopened to closed
comment:10
rob1n — 6 years ago
comment:11
Nazgul — 6 years ago
- Milestone changed from 2.2 to 2.1.4

You're missing an echo.