WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#2616 closed defect (bug) (fixed)

Pluggable install functions

Reported by: ryan Owned by: 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 (1)

pluggable_install.diff (17.4 KB) - added by ryan 7 years ago.
Let's be about it then

Download all attachments as: .zip

Change History (3)

ryan7 years ago

Let's be about it then

comment:1 ryan7 years ago

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.

comment:2 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.