Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#6967 closed defect (bug) (fixed)

TinyMCE wpWordCount detection doesn't work

Reported by: ramenboy's profile ramenboy Owned by: azaozz's profile azaozz
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.6
Component: TinyMCE Keywords:
Focuses: 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 17 years ago.
Patch: wpWordCount detection fix

Download all attachments as: .zip

Change History (6)

@ramenboy
17 years ago

Patch: wpWordCount detection fix

#1 @ramenboy
17 years ago

  • Version changed from 2.5.1 to 2.6

#2 @ryan
17 years ago

  • Owner changed from anonymous to azaozz

#3 @azaozz
17 years ago

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.

#4 @ryan
17 years ago

  • Milestone changed from 2.7 to 2.6

#5 @ryan
17 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.