WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6967 closed defect (bug) (fixed)

TinyMCE wpWordCount detection doesn't work

Reported by: ramenboy Owned by: 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 6 years ago.
Patch: wpWordCount detection fix

Download all attachments as: .zip

Change History (6)

ramenboy6 years ago

Patch: wpWordCount detection fix

comment:1 ramenboy6 years ago

  • Version changed from 2.5.1 to 2.6

comment:2 ryan6 years ago

  • Owner changed from anonymous to azaozz

comment:3 azaozz6 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.

comment:4 ryan6 years ago

  • Milestone changed from 2.7 to 2.6

comment:5 ryan6 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.