[wp-trac] [WordPress Trac] #27386: Editor: Word count should exclude shortcodes

WordPress Trac noreply at wordpress.org
Tue Mar 25 16:33:18 UTC 2014


#27386: Editor: Word count should exclude shortcodes
-------------------------------------------------+-------------------------
 Reporter:  bassgang                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Editor                               |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch dev-feedback needs-        |  Resolution:
  testing                                        |     Focuses:  javascript
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  has-patch dev-feedback needs-testing needs-unit-tests => has-
     patch dev-feedback needs-testing


Comment:

 [attachment:27386.2.patch] adds a (QUnit) unit test to verify that the
 word count feature correctly skips shortcodes when counting words. The
 test fails without the patch in /wp-admin/js/word-count.js and passes once
 the file is patched.

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


More information about the wp-trac mailing list