X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b3ddbea8a296025a672b3c3ddca158dc51ed8080..2394dc71e94f8323dc422e89f9841959de78d328:/wp-app.php diff --git a/wp-app.php b/wp-app.php index ec35b412..323f832a 100644 --- a/wp-app.php +++ b/wp-app.php @@ -223,7 +223,8 @@ class AtomServer { */ function __construct() { - $this->script_name = array_pop( explode( '/', $_SERVER['SCRIPT_NAME'] ) ); + $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ); + $this->script_name = array_pop( $var_by_ref ); $this->app_base = site_url( $this->script_name . '/' ); $this->selectors = array(