[wp-trac] [WordPress Trac] #56531: Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat content

WordPress Trac noreply at wordpress.org
Thu Sep 8 00:23:25 UTC 2022


#56531: Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat
content
-------------------------------------------------+-------------------------
 Reporter:  anrghg                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  needs-dev-note needs-patch changes-  |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by anrghg):

 == Note

 The “kill” in the issue title is no kidding, it’s a quote from `wp-
 includes/formatting.php`:
 {{{#!php
 <?php
 // Kill entities.
 $title = preg_replace( '/&.+?;/', '', $title );
 }}}

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


More information about the wp-trac mailing list