Opened 5 years ago

Closed 5 years ago

#6967 closed defect (bug) (fixed)

TinyMCE wpWordCount detection doesn't work

Reported by: ramenboy Owned by: azaozz
Priority: normal Milestone: 2.6
Component: TinyMCE Version: 2.6
Severity: normal Keywords:
Cc:

Description

The logic to detect if the wpWordCount JavaScript module exists does not work properly. If the module is missing, the script aborts. Adding a "typeof" solved the problem. Patch attached.

I ran into this problem because I am using WordPress from Debian unstable, and TinyMCE is currently broken. I was able to fix it by copying wp-includes/js/tinymce from SVN trunk and deleting wp-content/uploads/js_cache, then making the change in the attached patch.

Thanks,
Dave

Attachments (1)

wpWordCount-detection-fix.patch (536 bytes) - added by ramenboy 5 years ago.
Patch: wpWordCount detection fix

Download all attachments as: .zip

Change History (6)

Patch: wpWordCount detection fix

  • Version changed from 2.5.1 to 2.6

comment:2   ryan5 years ago

  • Owner changed from anonymous to azaozz

Yes, "typeof" was there in an earlier patch:
http://trac.wordpress.org/attachment/ticket/4807/word-count2.patch

but is missing from the latest one. Thanks for pointing that out.

comment:4   ryan5 years ago

  • Milestone changed from 2.7 to 2.6

comment:5   ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7929]) Word count detection fix from ramenboy. fixes #6967

Note: See TracTickets for help on using tickets.