函数原型
dashboard_browser_nag_class( string[] $classes ): string[]
函数描述
Adds an additional class to the browser nag if the current version is insecure.
是否弃用
未弃用
函数参数
-
$classes
string[]
Required - Array of meta box classes.
函数返回值
string[] Modified array of meta box classes.
函数位置
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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |

