Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975

git-svn-id: https://develop.svn.wordpress.org/trunk@19074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-28 15:48:44 +00:00
parent d85938ec7a
commit 722c6d7003
4 changed files with 8 additions and 4 deletions

View File

@@ -223,7 +223,8 @@ class AtomServer {
*/
function __construct() {
$this->script_name = array_pop( $var_by_ref = 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(