Local Development

外掛說明

這個外掛會為仍在本機開發階段的外掛或佈景主題加上開發通知,通知會顯示於外掛頁面及佈景主題頁面,並能防止已選取的外掛及佈景主題進行更新。

  • 自動將外掛及佈景主題納入版本控制。
  • 自動允許使用本機檔案伺服器。
  • 允許略過 WordPress 5.2 白色當機畫面 (WSoD,White Screen of Death) 關機處理常式。
  • 執行於 localhost 時,為管理列加入警示色彩。預設值為啟用。
  • 在外掛頁面加入 Git 託管圖示。預設值為關閉圖示。如果安裝並啟用 GitHub Updater,不會出現這項設定。
  • 允許在 wp-config.php 設定 WP_ENVIRONMENT_TYPE

歡迎在 GitHub 上對 develop 分支提出提取要求。

需要 PHP 5.6 或更新版本。

螢幕擷圖

  • 外掛設定
  • [外掛] 頁面
  • [佈景主題] 頁面
  • 多站網路的 [佈景主題] 頁面

使用者評論

2020 年 9 月 21 日
I'm using MAMP to develop a plugin locally. When MAMP is properly set up and running, it's easy not realize if the website in the browser is running locally or remotely. Installing the "Local Development" plugin makes it easy to see via the green highlight in the admin bar along with the word "local" in it. Simple, visual and effective. Thanks!
2020 年 7 月 21 日
This can prevent a potential disaster if you work locally. In my past I have made changes to live site by mistake. NO MORE!!! Thanks to this plugin.
閱讀全部 5 則使用者評論

參與者及開發者

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

參與者

Local Development 外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Local Development 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.8.0 / 2021-07-07

  • update WPConfigTransformer to use alternate anchor if default not present
  • add @10up GitHub Actions for WordPress SVN

2.7.3 / 2021-03-05

  • update docblocks
  • update tested to 5.7

2.7.2 / 2020-11-21

  • remove ‘Edit’ action link
  • fix PHP warning when some settings not yet saved

2.7.1 / 2020-10-05

  • try to correcty display defined WP_ENVIRONMENT_TYPE in Settings
  • remove branch switch list from GitHub Updater plugins/themes and add In Local Development item

2.7.0 / 2020-099-15

  • set custom admin bar to display environment type
  • remove WP_ENVIRONMENT_TYPE on deactivation
  • remove a line of jQuery for removing update row class as unnecessary and now conflicting with GHU
  • disable the auto-update link from WP 5.5

2.6.2 / 2020-09-01

  • only set WP_ENVIRONMENT_TYPE when changed

2.6.1 / 2020-09-01

  • fix for saving WP_ENVIRONMENT_TYPE

2.6.0 / 2020-09-01

  • add setting for WP_ENVIRONMENT_TYPE in WP 5.5+
  • refactor plugin startup a bit

2.5.7 / 2020-07-20

  • set disabled checked option if WP_DISABLE_FATAL_ERROR_HANDLER is true

2.5.6 / 2020-07-10

  • fix logic for no setting

2.5.5 / 2020-07-09

  • skip mu-plugins and drop-ins
  • filter options to save to remove unchecked and VCS repos
  • add git host icon for Gists
  • defer to GitHub Updater to show git host icons

2.5.4 / 2020-06-01

  • sanitizing, escaping & ignoring

2.5.3 / 2020-03-28

  • move Settings action link to front

2.5.2 / 2020-02-03

  • use is_localhost() for local git server setting and make automatic

2.5.1 / 2020-01-24

  • run if no settings yet saved

2.5.0 / 2020-01-23

  • update Requires at least in plugin file
  • add VCS checkouts automatically, thanks @Raruto
  • add Git Host icons as default setting for plugins and themes
  • add localhost admin bar coloring when on localhost, default is on
  • some now settings only display when running in localhost
  • add repositories that are added from GitHub Updater Additions

2.4.1 / 2019-05-09

  • a11y updates for settings tabs

2.4.0 / 2019-01-30

  • remove language pack updates for selected plugins/themes
  • only add WSOD bypass when appropriate

2.3.0 / 2019-01-22

  • add bypass for WordPress 5.2 WSOD Shutdown Handler
  • move loading hooks out of constructors
  • pass saved options to class constructors

2.2.0 / 2018-11-25

  • use composer for dependencies and autoloader

2.1.0 / 2018-10-01

  • updated error handling in Singleton factory
  • added class Bootstrap to allow for easier time with main plugin file

2.0.0

  • refactored to have each group in its own class, much more OOPy 😉
  • use wpcs codesniffer
  • removed checkboxes and delete links for checked plugins/themes

1.6.0 / 2018-05-26

  • added ability to use local file server on LAN during development
  • refactored hiding of update row to use jQuery and remove row, not CSS dislay none
  • update to PSR-2

1.5.0

  • stopped creation of generic global variables

1.4.0 / 2017-04-16

  • redesigned Settings to put checkbox in front of plugin/theme name
  • updated screenshots

1.3.1 / 2017-04-13

  • move Autoloader to new location
  • cleanup

1.3.0 / 2016-11-06

  • fixed PHP notice on settings page
  • correctly load translations
  • added our own PHP version check

1.2.4

  • cast self::$themes as array when empty, fixes PHP notice

1.2.3

  • fixed saving on single install when nothing selected

1.2.2

  • fix PHP notices on initial install and no saved settings

1.2.1

  • fix PHP notice

1.2

  • add hiding of update messages for GitHub Updater

1.1

  • specify admin_head-settings_page_local-development to add styles

1.0

  • rebrand as Local Development

0.2

  • hide update nag for selected repositories to prevent updating

0.1

  • initial release