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

Staging Users Control

外掛說明

Since we’ve been using WPEngine we found no way to limit access to the LIVE website. We had problems with users mistakenly editing the live website and messing up the HTML. This plugin basically adds a checkbox to the users (allow login on LIVE) and compare the get_bloginfo(‘url’) to the one setup on the plugin’s setting page. If it matches, it means it’s live environment and will prevent users who are not specifically authorized to login into the live environment. You can bypass this check (in case you log yourself out of live) by setting up a simple cookie. This is not a security plugin, this is just to avoid stupid mistakes. The URL meta value is base64 encoded before storage to avoid the Search and Replace generally done by the “One Click” live push.

Arbitrary section

Please let me know if you have any suggestions or questions.

螢幕擷圖

  • This is the plugin settings page, under Settings > Staging Users Control.
  • This is the users profile page, showing the new checkbox to allow users to login into the LIVE env.
  • You can show a message on the live site for users to notice they are logging on the LIVE site.

安裝方式

  1. Upload staging-users-control.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. IMPORTANT: First edit the users you want to allow on the LIVE environment.
  4. Setup the live environment URL under Settings > Staging Users Control
  5. Enjoy.

常見問題集

I logged myself out of the website because I didn’t allow any user to login to the live site

Just setup a COOKIE with the name “SUC-LOGMELIVE” and the specified value in the settings page if you want to bypass the plugin.
You can retrieve this value under Settings > Staging Users Control on your staging website.

I did setup everything correctly but the plugin does not seem to be recognizing the live site.

Sometimes character encoding can mess things up.
In the case of WP Engine, every time you push your site live, it replaces the value in get_bloginfo(‘url’). To work around this problem, you can use URL comparison by checking “Compare URL” in the plugin’s settings page. Make sure to match the protocol (http/https).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Staging Users Control〉的開發相關工作。

參與者

將〈Staging Users Control〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial Release