[wp-trac] [WordPress Trac] #44310: Apostrophe and/or Hyphen in Titles Rendered as ’ and – When Added as Link in Editor

WordPress Trac noreply at wordpress.org
Mon Oct 23 20:54:27 UTC 2023


#44310: Apostrophe and/or Hyphen in Titles Rendered as ’ and – When
Added as Link in Editor
-----------------------------------------+------------------------------
 Reporter:  midihead                     |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Editor                       |     Version:  4.9.6
 Severity:  normal                       |  Resolution:
 Keywords:  has-screenshots needs-patch  |     Focuses:
-----------------------------------------+------------------------------

Comment (by ahmadkarim):

 This is still happening as of version 6.3.2

 When getting post title through `get_the_title()` it will change ' with
 8217 code

 This is fixed when switching `get_the_title()` with
 `get_post_field('post_title', $post_id)`

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


More information about the wp-trac mailing list