[WordPress] 外掛分享: WP-Portability

WordPress 外掛 WP-Portability 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP-Portability」是 2014-07-21 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2015-10-26,距離現在已有 3478 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

frasmage | plankdesign |

外掛標籤

url | mobility | shortcode | portability | installation |

內容簡介

概述

WP-Portability是一個插件,旨在默默地使您的網站更易移植。它旨在促進移動 WordPress 安裝到另一個目錄或服務器或域名所需進行的工作。它使 WordPress 不太依賴安裝目錄和域名。

雖然任何人都可以使用 WP-Portability,但它是專為開發人員設計的。它極大地方便了開發人員小組在本地設計網站、將網站移動到測試服務器並最終推送到線上環境的工作。

功能

WP-Portability提供以下優化功能:

始終使用本地網址:移動 WordPress 安裝的最大問題可能是帖子內容中指向同一站點中其他內容(鏈接到其他頁面、上傳媒體等)的所有 URL 將會斷掉。對於大型網站來說,這可能是一個噩夢。WP-Portability通過在數據庫中將所有本地網址存儲為隱藏的短代碼,然後可以將其擴展到從任何域名/安裝目錄查看站點的正確路徑來解決這個問題。在編輯帖子時不會看到任何不同之處,但請放心,背景中會動態處理這些問題。
動態文件路徑:此插件將自動確定 WordPress 安裝路徑的 URL。這將設置 WP_SITEURL 和 WP_HOME 常數。如果在 wp-config 中已經設定了這些常數,此功能將不起作用。該功能將自動在 WordPress Multisite(網絡)上禁用,因為它將無法正常工作。
相對重寫:此插件更改了WordPress創建Apache級別的重寫的方式,始終使用相對路徑而不是絕對路徑。這可以使您通過不同的路線訪問同一安裝(例如,http://domain.com 和 http://127.0.0.1/path/to/install)。如果您使用的是WordPress Multisite(網絡)版本,則此功能將自動禁用,因為它將無法正常工作。

升級
1.0.1

修復 WordPress 4.0 中的錯誤

原文外掛簡介

Summary
WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done to be move a wordpress install to another directory or server or domain name. It makes WordPress much less attached and dependant on its install directory and domain name.
Though anyone can make use of WP-Portability, it was designed with developers in mind. It greatly facilitates designing sites locally amongst a team of developers, moving the site to a staging server and finally pushing it live.
Features
WP-Portability provides the following optimizations:

Always local URLs: Perhaps the biggest issues with relocating a wordpress install is the fact that every url pointing to other content in the same site (links to other pages, uploaded media, etc.) in the content of posts will break. This can be a nightmare to fix for larger sites. WP-Portability solves this by storing all local urls as a hidden shortcode in the database, which it can then expand to the correct path for whatever domain/install directory you view the site from. You will not see anything differently when you edit your posts, but rest assured that things are being handled dynamically in the background.
Dynamic file paths: This plugin will automatically determine the url of your WordPress install path. This will set the WP_SITEURL and WP_HOME constants. If these are already set in wp-config, this feature will not work. This feature will automatically disable itself on WordPress Multisite installations (network), as it will not work properly.
Relative Rewrites: This plugin changes the way WordPress creates apache-level rewrites, to always use relative paths, rather than absolute paths. This will enable access to the same installation via different routes (e.g. http://domain.com and http://127.0.0.1/path/to/install). This feature will automatically disable itself on WordPress Multisite installations (network), as it will not work properly.

Upgrade
1.0.1

Fixed bug in WordPress 4.0

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-Portability」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon