[wp-hackers] absolute URLs in plug-ins and custom types

Ryan McCue lists at rotorised.com
Sat Jul 7 03:14:58 UTC 2012


Mika A Epstein wrote:
> What would be 'easier' for that in-between dev, who is terrified of SQL, is a 'move WP' tool that does the mv and the sql s/r for you.

Alright, I'll concede the absolute-vs-relative-vs-shortcode (for now) in 
favour of actually getting a solution.

My thoughts on how to best implement a "move WP" tool:

1) User enables plugin before moving (if they forget, they can put in 
the old URL manually)
2) User moves WP installation
3) Plugin detects change of URL, presents ability to change URLs
4) Plugin changes all relevant pieces
4a) Replace URLs in post content
4b) Search options for old URL
4c) Walk through each old option, unserialize as needed, replace

Does that sound useful to anyone?
-- 
Ryan McCue
<http://ryanmccue.info/>




More information about the wp-hackers mailing list