Replaces default absolute, self-referencing urls in post content with the relative path "/" instead. Works on images and post-meta.
By default, WP inserts absolute urls into post content; this includes the protocol and domain, which is based on the
home Admin setting. This plugin replace all self-referencing (domain) links with relative paths "/" instead. Works when inserting images into posts, and on the actual
save_post action it scrubs the content, excerpt, and post_meta fields.
Especially helpful when developing on a DEV site with the intention of transfering to a LIVE domain. Please note that you should use this plugin before you start adding content, or you'll have to resave everything later.
Includes code based on Relative Image URLs plugin, which strips domain when inserting images from the Media Library. A similar idea to the following, but acts as a preventative measure (while you're working), works automatically, and handles meta fields:
Requires: 2.8 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-18
Active Installs: 200+
Got something to say? Need help?