[wp-trac] [WordPress Trac] #35437: dot in permalinks

WordPress Trac noreply at wordpress.org
Wed Jan 13 15:41:06 UTC 2016


#35437: dot in permalinks
-------------------------+-----------------------------
 Reporter:  vk_code      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Canonical    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------

Comment (by swissspidy):

 Replying to [comment:3 ericlewis]:
 > If someone could first dig into why this is working as such, that'd be a
 great start.

 Looks like the `WP` class just passes whatever it gets to `WP_Query`
 (which seems legit). In `WP_Query::get_posts()`,
 `sanitize_title_for_query` is used, which strips off those characters

 So when you open `https://make.wordpress.org/core/2016/01/13/feature-
 plugin-chat-notes-for-jan-12...` (someone may have typed the URL wrong),
 you still get to the right post. That only works for post names though,
 i.e. `https://make.wordpress.org/core/2016...` does not work.

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


More information about the wp-trac mailing list