原型

dashboard_browser_nag_class( array $classes )

参数

$classes (array) (Required)

返回值

(array)  

源文件

路径:wp-admin/includes/dashboard.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
...
function dashboard_browser_nag_class( $classes ) {
	$response = wp_check_browser_version();

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

	return $classes;
}

...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/dashboard_browser_nag_class/