dashboard_browser_nag_class( string[] $classes ): string[]

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


Parameters

$classes string[] Required
Array of meta box classes.

Top ↑

Return

string[] Modified array of meta box classes.


Top ↑

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;
}


Top ↑

Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.