許多使用者仍在使用過期的瀏覽器,而沒有注意到這當中的風險。升級瀏覽器可以確保更高的安全性及可靠性,這個外掛會顯示提醒網站訪客更新瀏覽器的通知,啟用外掛後便會開始執行。
WP BrowserUpdate is based on the browser-update.org detection logic. The plugin now runs independently from browser-update.org at display time: the visitor-facing notification is served from the plugin’s own bundled runtime files, so sites do not need to load scripts, styles, or default notification links from browser-update.org. browser-update.org remains the credited upstream source for the bundled detection logic, and future runtime refreshes are tracked with source URLs and hashes in the plugin assets.
請造訪 browserupdate.org 以進一步了解上層專案的相關資訊。
如果想要將這個外掛的介面本地化為你的母語版本,請造訪 WordPress 本地化專案頁面。
外掛運作方式
WP BrowserUpdate bundles browser-update.org detection logic for WordPress. After activation, the plugin loads the local notification runtime from the plugin directory and passes your configured browser-version thresholds to those scripts. The notification is shown only when the bundled detection logic matches a browser to your settings.
The settings page is available under Settings > WP BrowserUpdate. You can define browser versions for every browser key supported by the bundled browser-update.org runtime, choose where the message appears and which element should contain it, enable testing mode, decide whether mobile or unsupported browsers should be notified, customise links, language and message text, and add trusted custom CSS for the notification.
Browser version fields accept major versions such as 115 and positive dotted versions such as 137.0.3912.63. Dotted versions are passed exactly to the bundled runtime instead of being reduced to their major version; exact comparison depends on the bundled browser-update.org logic and the browser key used by that runtime. A value of 0 uses the default bundled outdated-browser detection. Negative whole numbers are passed to the bundled runtime as relative offsets from the current bundled upstream version.
Microsoft Edge and Microsoft Internet Explorer have separate settings now.
This local runtime design avoids frontend blocking of external script URLs on sites with strict Content Security Policies or tracker blocking. WP BrowserUpdate ships only the local runtime and CSP adapter files needed by the plugin.
重要注意事項
6.0 版重大變更
– 需要 WordPress 6.0 或更新版本。
– 導入新式結構化設定模組以支援 WP BrowserUpdate 所使用的 browser-update.org 自訂介面。
– 將以網站訪客為主的 browser-update.org 執行階段移至外掛套件,因此嚴格的內容安全性政策及追蹤攔截器不再需要允許執行來自 browser-update.org 的指令碼。
– 會自動移轉現有的 WP BrowserUpdate 5.x 設定。
5.0 版重大變更 – 需要 PHP 7.4 或更新版本。 – 在升級至 5.0 或更新版本前,請先確認目前使用的主機已升級至 PHP 7.4 或更新版本。 – 不再支援執行舊版 PHP 的伺服器。 – 如果目前使用的伺服器執行較舊的 PHP 版本,請下載 4.8.1 版。
