Opened 2 years ago
Closed 2 years ago
#16037 closed defect (bug) (worksforme)
include wp-load.php && POST = redirect to /wp-admin/install.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | External Libraries | Version: | 3.0.3 |
| Severity: | major | Keywords: | reporter-feedback |
| Cc: |
Description
When including wp-load.php in an external php-script and POSTing to that script with (for instance) a browser, redirects the browser to /wp-admin/install.php, instead of the external script getting the chance to process the POST request itself. GETing the script, functions as expected and is processed by the external script.
Change History (5)
comment:1
Bjorn Padding — 2 years ago
- Summary changed from include wp-load.php && POST = unexpected result to include wp-load.php && POST = redirect to /wp-admin/install.php
comment:2
SergeyBiryukov — 2 years ago
- Keywords reporter-feedback added; POST wp-load.php wp-admin/install.php removed
comment:4
SergeyBiryukov — 2 years ago
I've tried a basic form sample:
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
if ( !empty($_POST) )
print_r($_POST);
?>
<form method="post">
<input name="sample" type="text">
<input type="submit" />
</form>
Can't reproduce on Multisite either.
Note: See
TracTickets for help on using
tickets.

Can't reproduce neither on 3.0.3 nor on 3.1-RC1-17163.
Might be related to the specific request and/or script.