On this page
dashboard_browser_nag_class( string[] $classes ): string[]
Adds an additional class to the browser nag if the current version is insecure.
Parameters
$classesstring[] Required-
Array of meta box classes.
Return
string[] Modified array of meta box classes.
Source
File: wp-admin/includes/dashboard.php. View all references
function dashboard_browser_nag_class( $classes ) {
$response = wp_check_browser_version();
if ( $response && $response['insecure'] ) {
$classes[] = 'browser-insecure';
}
return $classes;
}
Related
Uses
| Uses | Description |
|---|---|
| wp_check_browser_version() wp-admin/includes/dashboard.php | Checks if the user needs a browser update. |
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/dashboard_browser_nag_class