Ticket #2549 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

wp-unattended feature

Reported by: technosailor Assigned to: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0.1
Severity: normal Keywords: flexible install process has-patch
Cc:

Description

As mentioned earlier on the hackers mailing list, I think this can be a useful feature for the small minority that deploy large numbers of blogs - specifically blg network folks. This feature has a low footprint (3 line diff for install.php and any and all options in the ini are optional.

Included: wp-admin/install.php (diff file) wp-admin/automated-install.php ./wp-unattended.ini-sample

Optional: Associated plugin to export settings from a Common Operating Environment blog to wp-unattended.ini wp-content/plugins/wp-unattended-export.php

Attachments

automated-install.php (309 bytes) - added by technosailor on 03/09/06 15:06:31.
install.php.diff (0.8 kB) - added by technosailor on 03/09/06 15:06:57.
wp-unattended.ini-sample (12.8 kB) - added by technosailor on 03/09/06 15:07:05.
wp-unattended-export.php (3.8 kB) - added by technosailor on 03/09/06 15:07:13.
2549.diff (0.8 kB) - added by Nazgul on 10/03/06 14:46:36.

Change History

03/09/06 15:06:31 changed by technosailor

  • attachment automated-install.php added.

03/09/06 15:06:57 changed by technosailor

  • attachment install.php.diff added.

03/09/06 15:07:05 changed by technosailor

  • attachment wp-unattended.ini-sample added.

03/09/06 15:07:13 changed by technosailor

  • attachment wp-unattended-export.php added.

03/09/06 20:31:26 changed by davidhouse

Recommend we add a hook to install.php then technosailer can distribute this as a plugin.

03/09/06 21:44:45 changed by technosailor

Not sure that a plugin could be loaded in install.php as WordPress is not installed yet and thus a plugin not activated.

03/09/06 21:49:47 changed by davidhouse

  • keywords set to bg|2nd-opinion.

Sorry. I knew there was a reason I didn't suggest this earlier.

Anyway, I don't really feel that this is core material but I'm sure it'll be useful nonetheless. Any other opinions?

03/09/06 22:15:06 changed by davidhouse

  • keywords deleted.

Recommend we add a hook to install.php then technosailer can distribute this as a plugin.

03/09/06 22:18:27 changed by davidhouse

  • keywords set to bg|2nd-opinion.

Argh. Sorry. Didn't mean that last comment.

03/09/06 22:33:43 changed by westi

  • keywords changed from bg|2nd-opinion to bg|2nd-opinion flexible install process.

This sounds like a good idea.

Not keen on how hardcoded it is to just setting options though.

Something like the flexible install process discussed in this hackers thread from novemeber might prove more suitable and keep the I18N foke happy too.

03/09/06 23:05:19 changed by technosailor

I'm not sure if I understand what was being proposed there but I'm willing to work with the devs and the i18n folks. Call this a proof of concept, if you will

03/11/06 06:48:48 changed by technosailor

Seems like this feature would perfectly parallel Alex's about:config idea

http://www.alexking.org/blog/2005/11/23/aboutconfig-for-wordpress/

In other words, I wrote this for install.php but that doesn't mean it can't be called using the init hook, no? Plugins could then load options from an ini file. This idea would have to be vetted out hard as I'm delusional at 2am, but I see the potential for more uses for this.

03/14/06 03:02:53 changed by ryan

We can move the code that creates the default category, post, page, user, etc. into a wp_install_defaults() function that is pluggable. From install.php, we can look for wp-content/install.php and load it if it exists.

10/03/06 14:46:36 changed by Nazgul

  • attachment 2549.diff added.

10/03/06 14:47:56 changed by Nazgul

  • keywords changed from bg|2nd-opinion flexible install process to flexible install process has-patch.

Added a small patch which looks for wp-content/install.php and loads if it exists. The rest of the required functionality has already been build and committed for ticket #2616.

Based on a suggestion by Ryan in this ticket.

10/03/06 16:02:06 changed by ryan

We require wp-content/install.php in upgrade-functions.php. Do we need to do it in wp-admin/install.php?

10/03/06 16:46:43 changed by Nazgul

I missed it in upgrade-functions when I looked. Guess I need glasses.

But to me install.php seems like a more logical place, because you'll only use this during installation, not during upgrades.

If not, than this ticket can be closed as a duplicate of #2616.

12/03/06 21:17:54 changed by matt

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

I think this already addressed by the pluggable functions.