wpseek.com
A WordPress-centric search engine for devs and theme authors



dashboard_browser_nag_class › WordPress Function

Since3.2.0
Deprecatedn/a
dashboard_browser_nag_class ( $classes )
Parameters:
  • (string[]) $classes Array of meta box classes.
    Required: Yes
Returns:
  • (string[]) Modified array of meta box classes.
Defined at:
Codex:

Adds an additional class to the browser nag if the current version is insecure.



Source

function dashboard_browser_nag_class( $classes ) {
	$response = wp_check_browser_version();

	if ( $response && $response['insecure'] ) {
		$classes[] = 'browser-insecure';
	}

	return $classes;
}