這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

i=== URLs Editor

描述

Before:
http://example.com/wp-content/themes/twentyten/style.css

After:
/wp-content/themes/twentyten/style.css

OR:

Before:
http://example.com/wp-content/themes/twentyten/style.css

After (adding “https”):
https://example.com/wp-content/themes/twentyten/style.css

If you are looking for a plugin that automatically converts absolute URLs to relative URLs, or for a plugin that changes URLS for src & href URL attributes check out my other plugin.

I wrote this plugin because I needed a basepath for uploaded images for my WordPress Multisite. In other words, I needed a URL to the server root without the domain. You may find this useful for the same reason, or perhaps another.

Before you copy this code and add it into your own, keep in mind that there may be future updates. Keeping the code within an activated plugin will make sure you’re notified.

安裝

  1. Download the plugin (zip file).

  2. Upload and activate the plugin through the “Plugins” menu in the WordPress admin.

常見問題

Why isn’t this automatic?
How does this work?

Just use urls_editor($html).

Will this plugin work for WordPress version x.x.x?

This plugin has only been tested with versions of WordPress as early as 3.2. For anything older, you’ll have to see for yourself.

評價

There are no reviews for this plugin.

貢獻者及開發者

“i=== URLs Editor” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 i=== URLs Editor 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.9

  • Initial release