Make WordPress Core

Opened 17 years ago

Closed 11 years ago

Last modified 11 years ago

#6991 closed defect (bug) (fixed)

Word Count is one number short

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

Description

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 17 years ago.
6991.diff (2.1 KB) - added by jorbin 11 years ago.

Download all attachments as: .zip

Change History (7)

#1 @azaozz
17 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.

@azaozz
17 years ago

#2 @ryan
17 years ago

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

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

#3 @jorbin
11 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.

@jorbin
11 years ago

#4 @SergeyBiryukov
11 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.