Opened 17 years ago
Closed 11 years ago
#11093 closed enhancement (wontfix)
allow instalation customisation - code included and tested
| Reported by: | thomask | Owned by: | sorich87 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upgrade/Install | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch needs-testing needs-refresh |
| Cc: | Focuses: |
Description
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
Attachments (3)
Change History (13)
@
17 years ago
new install.php file - replacement for /wp-admin/install.php (previous one miss global $wpdb by mistake))
#3
in reply to: ↑ 2
@
17 years ago
Replying to scribu:
You should really use svn to generate a diff file.
I know, sorry, but I am probably dumb or old-mind, never been playing with Trac and diffs
#4
@
17 years ago
- Milestone Unassigned → 2.9.2
- Priority high → normal
- Resolution → fixed
- Status new → closed
- Version 2.8.5 → 2.9.1
I have created diff to actual 2.9.1 version. I have never done it, so please someone to review it.
#6
@
17 years ago
- Keywords install customisation removed
- Milestone 2.9.2 → 3.0
- Resolution fixed
- Status closed → reopened
Tickets are closed upon code being commited to Trunk.
Setting milestone to 3.0 pending patch review & dev thoughts.
#7
@
16 years ago
Could you perhaps upload a Unified Diff, for example, from the output of Svn Diff? It'll make teh changes much easier to review.
http://funcdoc.wordpress.com/2008/01/21/how-to-patch-the-wordpress-core/
#8
@
16 years ago
- Keywords needs-patch added; has-patch needs-testing removed
- Milestone 3.0 → Future Release
Punting pending proper patch.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
ups, wrong formating and typo. Should be:
...
I have made very small changes to the install.php file
...I have made no other changes to install.php...