[wp-trac] [WordPress Trac] #6481: Fancy permalinks should be enabled on new sites

WordPress Trac noreply at wordpress.org
Fri Sep 19 02:50:43 UTC 2014


#6481: Fancy permalinks should be enabled on new sites
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Permalinks         |     Version:  2.7
 Severity:  minor              |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------
Changes (by loushou):

 * keywords:  needs-patch => has-patch


Comment:

 After reading this whole ticket, there are some good ideas here. It seems
 like we have also overcome at least half of the only real objection, since
 we write the .htaccess and web.config files. Only Nginx is on the outs.
 Thankfully, the code (and my patch) is written in such a way that even if
 we wind up adding the Nginx config writer later, another change should not
 be needed.

 My approach is simple. During the installation process, after we create
 our dummy data, it simply attempts to set a basic pretty permalink
 structure, and to subsequently hit that dummy post at it's pretty url. If
 we get a 200 response, the we can use pretty permalinks by default.
 Otherwise we just fallback to the ugly permalinks (coding defensively,
 heh).

 I'll attach the patch.

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


More information about the wp-trac mailing list