Ticket #2616 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

Pluggable install functions

Reported by: ryan Assigned to: ryan
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0.2
Severity: normal Keywords: install upgrade pluggable
Cc:

Description

Move the heavy lifting done in install.php and upgrade.php into functions and make those functions pluggable. Custom WP distro makers and i18n teams have requested pluggable install functions. So, let's add these:

  • wp_install() - top level install function
  • wp_install_defaults() - Installs default post, page, links, cat, etc.
  • wp_new_blog_notification() - Sends the new blog email.
  • wp_upgrade() - Top level upgrade function.

We might also want to make the schema pluggable. Could be handy for those porting to other DBs or for those who want to have extra fields and tables out of the box.

Attachments

pluggable_install.diff (17.4 kB) - added by ryan on 03/31/06 06:39:24.
Let's be about it then

Change History

03/31/06 06:39:24 changed by ryan

  • attachment pluggable_install.diff added.

Let's be about it then

03/31/06 06:40:30 changed by ryan

Replacement functions are loaded from wp-content/install.php, if present.

This cleans up the install and upgrade templates a bit, making them strictly presential.

03/31/06 08:07:44 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [3670]) Pluggable install functions. fixes #2616