Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#2616 closed defect (bug) (fixed)

Pluggable install functions

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: install upgrade pluggable
Focuses: 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 18 years ago.
Let's be about it then

Download all attachments as: .zip

Change History (3)

@ryan
18 years ago

Let's be about it then

#1 @ryan
18 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.

#2 @ryan
18 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.