WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 16 months ago

Last modified 16 months 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:

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

Download all attachments as: .zip

Change History (7)

comment:1 @azaozz7 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.

@azaozz7 years ago

comment:2 @ryan7 years ago

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

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

comment:3 @jorbin16 months 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.

@jorbin16 months ago

comment:4 @SergeyBiryukov16 months 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.