dashboard_browser_nag_class() WordPress Function
The dashboard_browser_nag_class() function is used to display a notice to users who are using an outdated browser. This notice will be displayed on the dashboard and will encourage the user to update their browser.
dashboard_browser_nag_class( string[] $classes ) #
Adds an additional class to the browser nag if the current version is insecure.
Parameters
- $classes
(string[])(Required)Array of meta box classes.
Return
(string[]) Modified array of meta box classes.
Source
File: wp-admin/includes/dashboard.php
function dashboard_browser_nag_class( $classes ) {
$response = wp_check_browser_version();
if ( $response && $response['insecure'] ) {
$classes[] = 'browser-insecure';
}
return $classes;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |