Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#16037 closed defect (bug) (worksforme)

include wp-load.php && POST = redirect to /wp-admin/install.php

Reported by: Bjorn Padding Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.3
Component: External Libraries Keywords: reporter-feedback
Focuses: Cc:


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 Padding5 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 @SergeyBiryukov5 years ago

  • Keywords reporter-feedback added; POST wp-load.php wp-admin/install.php removed

Can't reproduce neither on 3.0.3 nor on 3.1-RC1-17163.

Might be related to the specific request and/or script.

comment:3 @filosofo5 years ago

Maybe it's for multisite? See #14913 as possibly related.

comment:4 @SergeyBiryukov5 years ago

I've tried a basic form sample:

/* Short and sweet */
define('WP_USE_THEMES', false);

if ( !empty($_POST) )
<form method="post">
<input name="sample" type="text">
<input type="submit" />

Can't reproduce on Multisite either.

comment:5 @westi5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing as Works for Me based on comments above.

Note: See TracTickets for help on using tickets.