[wp-trac] [WordPress Trac] #11093: allow instalation customisation - code included and tested

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 7 14:34:41 UTC 2009


#11093: allow instalation customisation - code included and tested
-----------------------------+----------------------------------------------
 Reporter:  thomask          |       Owner:                        
     Type:  enhancement      |      Status:  new                   
 Priority:  high             |   Milestone:  Unassigned            
Component:  Upgrade/Install  |     Version:  2.8.5                 
 Severity:  minor            |    Keywords:  install, customisation
-----------------------------+----------------------------------------------
 Current Wordpress can have own instalation using instal.php file in /wp-
 content folder. The problem is, that this file can ovewrite only
 wp_install a wp_install_default functions, which are run AFTER both whole
 setup-config.php and install.php files were run. So e.g. it is not
 possible to add own logo to the instalation script, own input for e.g.
 predefining blog description ...

 I have made very small changes to the install.php file
 a) add if ( !function_exists( ... ) )  before all (2) functions in this
 file
 b) create 'check_blog_installed' function as enclosure for part with blog
 checking with !function_exist check again, so it can be also owerwritten
 c) create step_0, step_1, step_2 functions, and adding content of code
 parts run when $step = 0 or 1 or 2, again with !function_exist, so every
 step can be simply ovewritten
 d) create display_footer with !function_exist check and move footer to it,
 so even footer can be overwritten.

 I have made no other functions to install.php (even i think it should be
 revised because of not so nice code as other wordpress) because i think it
 should be next step

 the functions i have created should not be a problem, as they are only in
 scope of instal.php file

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11093>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list