Make WordPress Core

Opened 8 years ago

Closed 2 years ago

Last modified 2 years ago

#6991 closed defect (bug) (fixed)

Word Count is one number short

Reported by: Viper007Bond Owned by:
Milestone: 2.6 Priority: low
Severity: minor Version: 2.6
Component: Administration Keywords: has-patch
Focuses: Cc:


Write a post. The count will be one number too low.

For example:

This is some content. It should be ten words long.

The counter shows that being 9 words.

Attachments (2)

word-count.patch (386 bytes) - added by azaozz 8 years ago.
6991.diff (2.1 KB) - added by jorbin 2 years ago.

Download all attachments as: .zip

Change History (7)

#1 @azaozz
8 years ago

  • Keywords has-patch added; needs-patch removed

Only happens when the HTML editor is used. Removing the trimming of white space from the beginning and end fixes it.

8 years ago

#2 @ryan
8 years ago

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

(In [8035]) Word count fix from azaozz. fixes #6991

#3 @jorbin
2 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

This is broken in trunk for the text view if you don't have a trailing line. To test, use the same string as Viper007Bond, but make sure to not press enter.

qunit test attached.

2 years ago

#4 @SergeyBiryukov
2 years ago

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

This ticket was closed on a completed milestone, please open a new one.

Note: See TracTickets for help on using tickets.