Ticket #6967 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

TinyMCE wpWordCount detection doesn't work

Reported by: ramenboy Assigned to: 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

wpWordCount-detection-fix.patch (0.5 kB) - added by ramenboy on 05/13/08 15:44:18.
Patch: wpWordCount detection fix

Change History

05/13/08 15:44:18 changed by ramenboy

  • attachment wpWordCount-detection-fix.patch added.

Patch: wpWordCount detection fix

05/13/08 15:56:27 changed by ramenboy

  • version changed from 2.5.1 to 2.6.

05/13/08 16:11:08 changed by ryan

  • owner changed from anonymous to azaozz.

05/13/08 18:39:07 changed by 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.

05/14/08 04:07:33 changed by ryan

  • milestone changed from 2.7 to 2.6.

05/14/08 04:07:45 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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