We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf2578 commit f5bf1e8Copy full SHA for f5bf1e8
lib/class-wp-php-console.php
@@ -408,6 +408,11 @@ public function init() {
408
$_POST[ PhpConsole\Connector::POST_VAR_NAME ] = stripslashes_deep( $_POST[ PhpConsole\Connector::POST_VAR_NAME ] );
409
}
410
411
+ // By default PHP Console uses PhpConsole\Storage\Session for postponed responses,
412
+ // so all temporary data will be stored in $_SESSION.
413
+ // But there is some problem with frameworks like WordPress that override PHP session handler.
414
+ PhpConsole\Connector::setPostponeStorage( new PhpConsole\Storage\File( '/tmp/pc.data' ) );
415
+
416
$connector = PhpConsole\Connector::getInstance();
417
$connector->setPassword( $password );
418
0 commit comments