[wp-trac] [WordPress Trac] #40759: Word Count Discrepancies

WordPress Trac noreply at wordpress.org
Mon Jan 19 15:27:14 UTC 2026


#40759: Word Count Discrepancies
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-refresh reporter-    |     Focuses:
  feedback                                       |  administration
-------------------------------------------------+-------------------------
Changes (by ozgursar):

 * keywords:  has-patch needs-refresh needs-testing => has-patch needs-
     refresh reporter-feedback


Comment:

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested:
 https://core.trac.wordpress.org/attachment/ticket/40759/40759.patch

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 143.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps to Reproduce
 Tested the word count using both the classic editor and the block editor
 for the following cases:

 {{{
 a, jack, jill
 1, 5
 foo-bar
 e.g.
 &
 @
 .
 $4.99
 fuzz at baz.blog
 }}}


 === Actual Results
 1. ❌ Patch did not change word count for the given scenarios for both
 classic and block editor.
 2. Also, it isn't clear what the word counts should be after applying
 patch.
 2. The word count differences I found between classic and block editor are
 as follows:

 Before applying patch:

 Individual Numbers (1, 5)
 - Classic editor: 0
 - Block editor: 2

 Compound number ($4.99)
 - Classic editor: 0
 - Block editor: 1


 ----

 After applying patch:

 Individual Numbers (1, 5)
 - Classic editor: 0
 - Block editor: 2

 Compound number ($4.99)
 - Classic editor: 0
 - Block editor: 1

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


More information about the wp-trac mailing list