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

WordPress Trac noreply at wordpress.org
Fri Jan 9 06:38:36 UTC 2015


#6481: Fancy permalinks should be enabled on new sites
-------------------------------+------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  4.2
Component:  Permalinks         |     Version:  2.7
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+------------------

Comment (by nacin):

 I would like to unplug this function. There's no need for it to be
 overridden. I understand the consistency argument, but only five of the
 functions in this entire file are overridable. They fall into either two
 categories: some crazy, complicated thing you must be insane to want to
 override, or wp_install_defaults(), which is pluggable because it makes a
 decent amount of sense.

 At this time in the install process, the only stuff that is actually
 loaded is wp-content/install.php. This suggests an advanced use case
 already. Plugging this function would only serve to stop it (which, no,
 there's no desire to encourage ugly permalinks) or to set a custom
 permalink structure. If you wanted to set a custom permalink structure,
 you could simply do so on the wp_install hook or in wp_install(). I just
 don't see a wide use case for needing to override this particular
 function. (And I am one person on a very small list of people who have
 ever used wp-content/install.php, I bet.)

 The five other pluggable functions here were all added in 2.1. Across all
 of core, the last one we added was in 3.0. They're a dead pattern (anti-
 pattern, even) we should avoid.

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


More information about the wp-trac mailing list