[wp-hackers] WP_SITEURL and db update

Stefano Aglietti steagl4ml at gmail.com
Tue Jul 29 15:18:15 GMT 2008


On Tue, 29 Jul 2008 09:08:44 -0500, Otto <otto at ottodestruct.com>
wrote:

>On Tue, Jul 29, 2008 at 8:05 AM, Stefano Aglietti <steagl4ml at gmail.com> wrote:
>> On Tue, 29 Jul 2008 05:20:08 -0700, Viper007Bond
>> <viper at viper007bond.com> wrote:
>>
>>>What does it matter what the value in the database is? You shouldn't be
>>>manually querying, so it won't affect you.
>>
>> Would be usefull for end users that mess up with paths and url in the
>> admin panel, this solve the problem but if it force tha value would be
>> an easy alternative that editing DB using phpmyadmin.
>
>I've been telling people to add code to their theme's functions.php
>file instead of manually modifying the DB:
>update_option('siteurl','http://example.com');
>update_option('home','http://example.com');

This should work for very "ungeek" people.. nice idea ;) thanks

-- 

Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431
Email: steve at 40annibuttati.it steagl at people.it
Sites: http://www.40annibuttati.it (personal blog)
       http://www.wordpress-it.it (WordPress Italia)


More information about the wp-hackers mailing list