Dynamic Links
开发者 |
greencp
|
更新时间 |
2014年1月25日 01:27 |
捐献地址: |
去捐款 |
PHP版本: |
3.2 及以上 |
WordPress版本: |
3.3 |
详情介绍:
When inserting an image into a posts Wordpress uses absolute urls (i.e. including domain name) for the src and href attributes of the image and associated link. This leads to problems if you change your domain (e.g. when moving from test to production environment) or if you change the base path of your upload directory. Also usage of relative URLs (i.e. absolute path to file without domain part) can reduce file size, but may not be used in feeds.
Dynamic Links replaces all links to files in the upload directory with a placeholder which is replaced again with the base path to the upload dir when the content is viewed. This way image links are dynamically adapted to changes in domain name or upload base path.
As additional option relative links can be used when content is display on your site to reduce page size (Though there are better options to do this. It's just included because it's possible). Images and links in feeds will always get the full path.
安装:
Download, install, activate.
For now you have to update every post manually for the placeholders to be used. A function to do this automatically on all posts (and to revert it) is planned for the next release.
更新日志: