[wp-trac] Re: [WordPress Trac] #10234: Incorrect 'siteurl' inserted into database

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 23 12:45:36 GMT 2009


#10234: Incorrect 'siteurl' inserted into database
-----------------------------+----------------------------------------------
 Reporter:  SteveBooth       |       Owner:  dd32 
     Type:  defect (bug)     |      Status:  new  
 Priority:  normal           |   Milestone:  2.8.1
Component:  Upgrade/Install  |     Version:       
 Severity:  blocker          |    Keywords:       
-----------------------------+----------------------------------------------

Comment(by SteveBooth):

 Is there some reason we're not just using get_option('home')here?  As in:


 {{{
 if ( !$requested_url ) {
      // build the URL in the address bar
      $requested_url  = ( !empty($_SERVER['HTTPS'] ) &&
         strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
      $requested_url .= get_option('home');
      $requested_url .= $_SERVER['REQUEST_URI'];
    }

 }}}

 I mean... the database is supposed to have the guaranteed correct path to
 the site -- that *is* what the 'home' option is for, isn't it?

 S

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10234#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list