[wp-trac] [WordPress Trac] #37103: get_comments_number_text() should not replace '%' in post title

WordPress Trac noreply at wordpress.org
Tue Jun 14 20:06:04 UTC 2016


#37103: get_comments_number_text() should not replace '%' in post title
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Comments        |    Version:  4.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 Background: #13651

 1. Create a post titled "Hello % world".
 2. Add a couple of comments.
 3. `comments_popup_link()` will produce the following output:
 {{{
 <a href="...">2 Comments <span class="screen-reader-text"> on Hello 2
 world!</span>
 }}}

 Note "Hello 2 world!" instead of "Hello % world!", due to
 `get_comments_number_text()` treating `%` as a comments number.

 Reproduced with 4.5.2 and Twenty Sixteen. Technically introduced in
 [31388].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37103>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list