From a6825f6b46b1e673fe0f72b5bd7f46f110e89fda Mon Sep 17 00:00:00 2001 From: Myk T0ngc0 Date: Sat, 17 Jun 2017 15:00:55 +0800 Subject: [PATCH] Fix php7 error on index.php line 22 PHP7 Error Message: "Notice: Only variables should be passed by reference in \wp-quick-install\index.php on line 22" --- wp-quick-install/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-quick-install/index.php b/wp-quick-install/index.php index 89a0a9f..bdbb429 100755 --- a/wp-quick-install/index.php +++ b/wp-quick-install/index.php @@ -19,7 +19,8 @@ require( 'inc/functions.php' ); // Force URL with index.php -if ( empty( $_GET ) && end( ( explode( '/' , trim($_SERVER['REQUEST_URI'], '/') ) ) ) == 'wp-quick-install' ) { +$requestURI = explode( '/' , trim($_SERVER['REQUEST_URI'], '/') ); +if ( empty( $_GET ) && end( ( $requestURI ) ) == 'wp-quick-install' ) { header( 'Location: index.php' ); die(); }