W3cubDocs

/WordPress

dashboard_php_nag_class( array $classes )

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

Description

Parameters

$classes

(array) (Required) Metabox classes.

Return

(array) Modified metabox classes.

Source

File: wp-admin/includes/dashboard.php

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

Changelog

Version Description
5.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/dashboard_php_nag_class