Make WordPress Core

Ticket #11916: wp-app.patch

File wp-app.patch, 546 bytes (added by macTijn, 15 years ago)

patch to fix path error

  • wp-app.php

    old new  
    226226        function AtomServer() {
    227227
    228228                $this->script_name = array_pop(explode('/',$_SERVER['SCRIPT_NAME']));
    229                 $this->app_base = get_bloginfo('url') . '/' . $this->script_name . '/';
     229                $this->app_base = get_option('siteurl') . '/' . $this->script_name . '/';
    230230                if ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) {
    231231                        $this->app_base = preg_replace( '/^http:\/\//', 'https://', $this->app_base );
    232232                }