[WordPress] 外掛分享: Dismiss Browser Update Nag Dashboard Widget

首頁外掛目錄 › Dismiss Browser Update Nag Dashboard Widget
WordPress 外掛 Dismiss Browser Update Nag Dashboard Widget 的封面圖片
10+
安裝啟用
尚無評分
2836 天前
最後更新
問題解決
WordPress 3.2+ PHP 5.2.4+ v1.0.1 上架:2017-11-17

內容簡介

啟用此外掛後,可以解除瀏覽器更新 nag,並從儀表板 widget 中移除它,如果該外掛位於 mu-plugins 目錄內,也可以自動完成。此外掛的開發在GitHub和Travis CI上進行。 Dismiss Browser Update Nag 是 Dismiss Gutenberg Nag 和 Dismiss Welcome Panel Nag 的最佳搭檔。並且與GlotPress Translations兼容。此外掛於2017年11月18日在外掛目錄庫中得到批准。

移除瀏覽器更新 widget,可以加速儀表板的加載和您在儀表板上的操作。

提示

一個巧妙的技巧是將此單個文件dismiss-browser-nag.php (不是其父目錄)放置在 /wp-content/mu-plugins/ 目錄中(如果不存在,請創建它)。這樣,您甚至無需啟用此外掛,它就會被自動加載,並自第一步安裝WordPress設置開始!

說明

這與其他類似的外掛不同之處在於它使用 filter hook 而不是 action hook。過濾器應該過濾信息,因此接收信息 / 數據,應用過濾器並返回信息 / 數據,然後使用它。但是,過濾器仍然是 action hook。WordPress 定義 add_filter/remove_filter 為"將函數鉤住到特定過濾器操作上",而add_action/remove_action 為"將函數鉤住到特定操作上"。

什麼是瀏覽器更新?

瀏覽器更新是一種找出最新版本的主要瀏覽器的方式,同時了解可能比您目前使用的瀏覽器更適合的替代瀏覽器:過時的瀏覽器讓電腦不安全。此功能使用 Browse Happy,這是由網絡標準專案於2004年8月創建的網站,旨在說服網絡用戶使用除 Microsoft 的 Internet Explorer 之外的網頁瀏覽器。它關注 Internet Explorer 的安全問題,並建議四個替代方案:Mozilla Firefox、Opera、Safari 和 Google Chrome。該站點的核心是收集這樣的故事:使用者已經從 Internet Explorer 切換到替代網頁瀏覽器。WordPress 自動使用這個功能,並在儀表板上顯示一個令人惱火的 widget,即使您有意為各種原因使用過時瀏覽器。

關於它

此外掛的代碼不是使用PHP框架,而是使用簡單的php編輯器手動編寫,兼容 UTF-8 without BOM和 Unix LF。為了避免代碼損壞,請勿使用WordPress嵌入式編輯器或任何不兼容規範的編輯器進行編輯。

翻譯

翻譯者:Luciano Croce

鳴謝

感謝 Andrea Gandino(andg) 的意大利翻譯批准。

感謝 Garrett Hyder 的英文(加拿大)翻譯批准。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dismiss Browser Update Nag Dashboard Widget」→ 直接安裝(推薦)

原文外掛簡介

Dismiss Browser Update nag, dashboard widget, when it is activated, or automatically, if it is in mu-plugins directory. Development for this plugin, takes place at GitHub, and Travis CI. Dismiss Browser Update Nag is the best companion of Dismiss Gutenberg Nag and Dismiss Welcome Panel Nag. Compatible with GlotPress Translations. Plugin approved in the repository of the plugin directory on 2017-11-18
Removing browser update widget, speeds up the loading of dashboard and yours operations on it.
Tips
A neat trick, is to put this single file dismiss-browser-nag.php (not its parent directory) in the /wp-content/mu-plugins/ directory (create it if not exists) so you won’t even have to enable it, and will be loaded by default, also, since first step installation of WordPress setup!
Explanation
This, is different from the other similar plugins, because uses the filter hook, and not the action hook. Filters should filter information, thus receiving information/data, applying the filter and returning information/data, and then used. However, filters are still action hooks. WordPress defines add_filter/remove_filter as “hooks a function to a specific filter action”, and add_action/remove_action as “hooks a function on to a specific action”.
What is Browser Update?
Browser Update is a way to find out what are the latest versions of the major browsers around, and also learn about alternative browsers that may fit even better than the one are currently using: an outdated browser makes computer unsafe. This function use Browse Happy, a website created by the Web Standards Project in August 2004, to convince internet users to use a web browser other than Microsoft’s Internet Explorer. It focuses on security issues in Internet Explorer and suggests four alternatives: Mozilla Firefox, Opera, Safari and Google Chrome. The core of the site is a collection of stories of people who have switched from Internet Explorer to alternative web browsers. WordPress automatically implements this feature with an annoying widget that is displayed on the dashboard without administrator control, even when you consciously use an out-of-date browser for the most varied reasons.
About it
The code of this plugin, is not written with a php framework, but with a simple php editor, manually, compatible UTF-8 without BOM, and Unix LF. To avoid code corruption, do not edit it with WordPress embedded editor, or with any specifications incompatible editor.
Translation
Translated by: Luciano Croce
Acknowledgements
Thanks to Andrea Gandino (andg) for Italian translation approval.
Thanks to Garrett Hyder for English (Canada) translation approval.

延伸相關外掛

文章
Filter
Mastodon