Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r18022 r18110  
    217217
    218218        /**
    219          * PHP4 constructor - Sets up object properties.
     219         * Constructor - Sets up object properties.
    220220         *
    221221         * @since 2.2.0
    222222         * @return AtomServer
    223223         */
    224         function AtomServer() {
    225 
    226                 $this->script_name = array_pop( $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] ) );
     224        function __construct() {
     225
     226                $this->script_name = array_pop( explode( '/', $_SERVER['SCRIPT_NAME'] ) );
    227227                $this->app_base = site_url( $this->script_name . '/' );
    228228
Note: See TracChangeset for help on using the changeset viewer.