[wp-trac] [WordPress Trac] #55117: Possible 5.9 Bug: Unknown character ( or %ef%bf%bc ) on content title

WordPress Trac noreply at wordpress.org
Tue Feb 8 19:44:03 UTC 2022


#55117: Possible 5.9 Bug: Unknown character ( or %ef%bf%bc ) on content title
---------------------------------------------+-----------------------------
 Reporter:  cantuaria                        |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
                                             |  Review
Component:  Editor                           |     Version:  5.9
 Severity:  normal                           |  Resolution:
 Keywords:  reporter-feedback needs-testing  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 `%ef%bf%bc` appears to be an
 [https://www.fileformat.info/info/unicode/char/fffc/index.htm object
 replacement character] in UTF-8, used as a placeholder in text for an
 otherwise unspecified object.

 Since it does not add any significant value to the post title, we should
 be able to just remove it from the URL in `sanitize_title_with_dashes()`,
 like we already do with a [source:tags/5.9/src/wp-
 includes/formatting.php?marks=2260-2314#L2252 bunch of other characters].

 That said, looking at the example above, it is also displayed in the
 actual post title: [attachment:55117.png], and we don't have a precedent
 of filtering out characters like that from there. Maybe removing it from
 the URL would be enough?

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


More information about the wp-trac mailing list