[wp-trac] [WordPress Trac] #26620: Word Count is one number short

WordPress Trac noreply at wordpress.org
Fri Jun 19 10:35:02 UTC 2015


#26620: Word Count is one number short
---------------------------------------+-----------------------------
 Reporter:  jorbin                     |       Owner:  iseulde
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  Future Release
Component:  Editor                     |     Version:
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  needs-patch needs-refresh  |     Focuses:
---------------------------------------+-----------------------------
Changes (by iseulde):

 * owner:   => iseulde
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32856"]:
 {{{
 #!CommitTicketReference repository="" revision="32856"
 Editor: restructure word count

 * The WordCounter should only do one thing: count words. This makes it
 also easier to test.
 * Add some really basic unit tests.
 * Instead of only refreshing the count on enter and delete, refresh the
 count when the user stops typing. Also look at paste and content changes
 in TinyMCE.
 * Use `match` instead of `replace` when it is appropriate.
 * More readable code.

 See #30966. Fixes #26620.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26620#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list