Joined October 2012
·
Posted to
My git log
over 1 year
ago
wow it's look very pretty ;)
Achievements
66 Karma
1,538 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Kona
Have at least one original repo where CoffeeScript is the dominant language
At first glance a good idea, but if you take a look into the database you will notice that some data is php-serialized.
php-serialized means, that an array was converted into a string (in this case to be stored in a database) and it looks like:
This structure is always built with the information about the string length. In this case: 54 chars. If your new Url has another length, the database field can't be unserialized. To replace the URL you have to unserialize the string, replace the url in the array and serialize it back.
Wordpress recommends the search and replace script. [1]
In addition I think the system of storing absolute urls in the database might not be a good idea, but the wordpress team made this decision unfortunately.