Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#43284 new defect (bug)

Drop-in: Disabling "wp_install_defaults" affect permalinks & "/login" redirect

Reported by: rajitrazaki Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: Upgrade/Install Keywords:
Focuses: Cc:


I want to prevent default "Uncategorized" category, first post (Hello world!), first page, and default widgets.

I need to disable wp_install_defaults. So, I created Drop-in /wp-content/install.php which contains:

        function wp_install_defaults() {

Strangely it also disable default permalinks setting (it not select "Day and name" but "Plain" instead), even though permalinks is on different function wp_install_maybe_enable_pretty_permalinks.

It also not redirect /login/ to /wp-login.php.

Change History (1)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to Upgrade/Install
Note: See TracTickets for help on using tickets.