Opened 10 years ago
Closed 10 years ago
#40501 closed defect (bug) (fixed)
$version is not defined in editor_js() for TinyMCE
| Reported by: | littler.chicken | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | TinyMCE | Version: | 4.8 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Whenever I open an admin screen with a post edit field, I get this notice:
PHP Notice: Undefined variable: version in ...class-wp-editor.php on line 1426
It appears that $version has not been defined for the TinyMCE script in the editor_js() method. It looks like other methods in this class call the global and then use it to define the version, something like:
global $tinymce_version; $version = 'ver=' . $tinymce_version;
If I add these two lines to the method, the notice is fixed. I know that the TinyMCE component was updated just this week but didn't see a ticket on this variable.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related #35760.
Yeah, missed that. Thanks for the bug report.