Opened 10 years ago
Closed 10 years ago
#32311 closed defect (bug) (wontfix)
Incorect redirection on install when including wp-load.php from an external script
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | 2nd-opinion close |
Focuses: | Cc: |
Description
Hello.
if i include('wp-load.php') from an external MYFILE.php .
when I open this url:
http://mysite.com/wp/MYDIR/MYFILE.php?query=bla&smt=\wp\dir\
but Wordpress is not installed yet, then from that URL, instead of:
http://mysite.com/wp/MYDIR/wp3/wp-admin/install.php
i am redirected to:
http://mysite.com/wp/MYDIR/MYFILE.php?query=bla&smt=\wp\dir/wp-admin/install.php
Change History (4)
#1
@
10 years ago
- Component changed from General to Upgrade/Install
- Summary changed from incorect redirection to Incorect redirection on install when including wp-load.php from an external script
#4
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Agreed that this is outside of the scope of WordPress to handle. If you're including wp-load.php
from an external script, it's sane to assume that you're implementing some sort of custom integration that relies on WordPress already being installed.
Note: See
TracTickets for help on using
tickets.
This is one of the many edge cases that I don't think we can/should really support. We guess the url based on the
$_SERVER
variables and the current__DIR__
, working in when we're included from an external script feels like it's going to add further complexity that isn't actually useful in most cases.