wp.load() makes untested assumption
-
wp-includes/load.php:
instead of just doing this: $_REQUEST = array_merge( $_GET, $_POST );
It variously throws PHP errors claiming the 1st (usually) or 2nd (sometimes) argument is not an array. If I replace that with this:
if(is_array($_GET)) { if(is_array($_POST)) $_REQUEST = array_merge( $_GET, $_POST ); else $_REQUEST = array_merge( $_GET ); } else { if(is_array($_POST)) $_REQUEST = array_merge($_POST); else $_REQUEST = ”; }
The errors go away.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘wp.load() makes untested assumption’ is closed to new replies.