[wp-trac] [WordPress Trac] #4687: Link to install.php needs to
respect the WP_SITEURL value, if defined
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 31 01:59:15 GMT 2007
#4687: Link to install.php needs to respect the WP_SITEURL value, if defined
----------------------------+-----------------------------------------------
Reporter: JeremyVisser | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.4 (future)
Component: Administration | Version: 2.2.1
Severity: minor | Keywords: needs-patch
----------------------------+-----------------------------------------------
When doing [http://install4free.wordpress.net/ Install4Free] installs, if
someone requests that I install WordPress in the root of their domain, I
actually put WP in {{{/wordpress/}}} and put the {{{index.php}}} in the
root. By doing that, I'm still doing as they requested, but keeping their
{{{public_html}}} folder clean.
Now, I have to say that since {{{WP_HOME}}} and {{{WP_SITEURL}}} got added
to {{{wp-config.php}}} this suddenly got a lot faster, but one annoying
thing is that when you then access the root of the domain, the greeting
message:
{{{
It doesn't look like you've installed WP yet. Try running install.php.
}}}
...links to the wrong URL. I have to manually navigate to
{{{/wordpress/}}} and click the {{{install.php}}} link from there. At this
point, WP is able to read from {{{wp-config.php}}}, so if {{{WP_SITEURL}}}
is set by now (which I always do), make it link something like this
instead:
{{{
if ( defined('WP_SITEURL') )
echo '<a href="' . WP_SITEURL . '/wp-
admin/install.php">install.php</a>';
else // hardcoded:
echo '<a href="wp-admin/install.php">install.php</a>';
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4687>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list