[wp-hackers] absolute URLs in plug-ins and custom types
"Matthias P. Würfl"
mpw at taquiri.de
Fri Jul 6 09:13:13 UTC 2012
Am 06.07.2012 10:46, schrieb John Blackbourn:
> This isn't a bad approach and I've considered it myself, but it
> doesn't solve cases where one of your authors comes along and
> copy-pastes a page URL into the post content.
I solved this with a small plugin that uses output buffering and
search/replace. It is aware of alle the servers (dev/testing/live) and
fixes all URLs. Together with multiple config-files included based on
HTTP_HOST i can move around my Wordpress-blogs without touching anything.
Matthias
More information about the wp-hackers
mailing list