X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..refs/tags/wordpress-3.3.1-scripts:/wp-app.php?ds=inline 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(