WordPress开发者和主题制作者的搜索引擎



dashboard_php_nag_class ›

Since5.1.0
已弃用n/a
dashboard_php_nag_class ( $classes )
参数:
  • (array) $classes Metabox classes.
    Required: Yes
返回:
  • (array) Modified metabox classes.
定义在:
文档:

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



源码

function dashboard_php_nag_class( $classes ) {
	$response = wp_check_php_version();

	if ( $response && isset( $response['is_secure'] ) && ! $response['is_secure'] ) {
		$classes[] = 'php-insecure';
	}

	return $classes;
}