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

WP Live.php

外掛說明

This plugin was written to make WordPress theme and plugin developers’ life easier.
Inspired by the brilliant live.js script (written by Martin Kool),
this plugin will auto refresh your browser if you change any files in your wp-content/themes
or plugins directories. No need for Alt-Tab and manual refresh anymore.

If you activate the WP Live Php plugin, it adds a small javascript file to your blog.
It will monitor your directories by calling wp-live.php every second. If any file changed
(i.e. has a newer filemtime), the browser will be refreshed.

With this plugin, it is also very easy to check your work in many browsers simultaneously.
Just enable Frontend Monitoring, load the site in all your browsers and the rest goes automatically.

Starting from v1.3 there is an option to enable admin bar integration, to conveniently enable or
disable Live.php monitoring directly on your frontend or backend with just one click.

Since v1.5 with the content update feature, you can auto-update your browser with every post or page save.
For this we create a file in the uploads base folder (wp-content/uploads/), and touch it with every save,
which will trigger a refresh in the client browser. That location must be writable for this to work.

WARNING!
You should never activate this plugin on a live server! It is meant for developer environment only!
Use https://wordpress.org/plugins/reload/ instead, which is created for production environments.

螢幕擷圖

  • Settings page
  • Admin bar integration

安裝方式

Upload the WP Live.php plugin to your blog and Activate it.

If you want to use the content updates, make sure that the uploads base folder (wp-content/uploads/) is
writable! (But to use WP you would need this anyway…)

使用者評論

閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Live.php〉的開發相關工作。

參與者

將〈WP Live.php〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.6.1

  • A small js timeout fix

1.6

  • Refresh CSS files without reloading the page.

1.5

  • Awesome new feature: content updates!
    When you save a post or page in your wp-admin, the visitor side will refresh itself, showing the new content immediately.

1.4.2

  • Updated support forum link

1.4.1

  • File state cache clearing added

1.4

  • Switched to long polling. Now the js will open only one long ajax request every 2 minutes (or as long as the php script is allowed to run).

1.3.1

  • No new features, only some refactoring and code cleaning

1.3

  • Admin bar integration

1.2.1

  • No cache fix for IE

1.2

  • Added Backend (wp-admin) monitoring option
  • Settings page improvements – Ajax controls

1.1.1

  • Some minor fixes

1.1

  • Added settings page (Settings/WP Live.php) to enable / disable the monitoring function
  • Some code cleanup
  • Updated for WP 3.3

1.0

  • Initial version