dashboard_php_nag_class( string[] $classes )

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

Parameters Parameters


(string[]) (Required) Array of meta box classes.

Top ↑

Return Return

(string[]) Modified array of meta box classes.

Top ↑

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

Top ↑

Changelog Changelog

Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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