public
Description: Small collection of scripts to manage wordpress
Homepage: http://people.warp.es/~koke/wordpress-scripts/
Clone URL: git://github.com/koke/wordpress-scripts.git
Search Repo:
Support  other than wp_
koke (author)
Fri May 23 09:52:30 -0700 2008
commit  f3a09d0af90b1f7893aac881f27d61c794639fe6
tree    97405aac9e57117030f7182ac3561dd4c141fd17
parent  f5cdab43758440c159da123976bcb47f618ad3d0
...
27
28
29
30
 
31
32
33
 
34
...
27
28
29
 
30
31
32
 
33
34
0
@@ -27,8 +27,8 @@ if (!preg_match('/^http:\/\//', $host_name)) {
0
     $host_name = "http://$host_name";
0
 }
0
 echo "Changing siteurl to $host_name...\n";
0
-$sql = "UPDATE wp_options SET option_value = '$host_name' WHERE option_name = 'siteurl'";
0
+$sql = "UPDATE ${table_prefix}options SET option_value = '$host_name' WHERE option_name = 'siteurl'";
0
 system(sprintf("mysql -h %s -u %s $popt %s -e \"%s\"", DB_HOST, DB_USER, DB_NAME, $sql));
0
 echo "Changing siteurl to $host_name...\n";
0
-$sql = "UPDATE wp_options SET option_value = '$host_name' WHERE option_name = 'home'";
0
+$sql = "UPDATE ${table_prefix}options SET option_value = '$host_name' WHERE option_name = 'home'";
0
 system(sprintf("mysql -h %s -u %s $popt %s -e \"%s\"", DB_HOST, DB_USER, DB_NAME, $sql));

Comments

    No one has commented yet.