Make WordPress Core

Changeset 19074 for trunk/wp-app.php


Ignore:
Timestamp:
10/28/2011 03:48:44 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r18998 r19074  
    224224    function __construct() {
    225225
    226         $this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) );
     226        $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] );
     227        $this->script_name = array_pop( $var_by_ref );
    227228        $this->app_base = site_url( $this->script_name . '/' );
    228229
Note: See TracChangeset for help on using the changeset viewer.