Opened 15 years ago
Closed 15 years ago
#16037 closed defect (bug) (worksforme)
include wp-load.php && POST = redirect to /wp-admin/install.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | major | Version: | 3.0.3 |
| Component: | External Libraries | Keywords: | reporter-feedback |
| Focuses: | 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)
#1
@
15 years ago
- Summary changed from include wp-load.php && POST = unexpected result to include wp-load.php && POST = redirect to /wp-admin/install.php
#4
@
15 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.