dashboard_browser_nag_class

The WordPress Core dashboard browser nag class function.

Description

(array) dashboard_browser_nag_class( (array) $classes ); 

Returns (array)

Parameters (1)

0. $classes (array)
The classes.

Usage

  1. if ( !function_exists( 'dashboard_browser_nag_class' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/dashboard.php'; 
  3.  
  4. // The classes. 
  5. $classes = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = dashboard_browser_nag_class($classes); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/dashboard.php  
  1. function dashboard_browser_nag_class( $classes ) { 
  2. $response = wp_check_browser_version(); 
  3.  
  4. if ( $response && $response['insecure'] ) 
  5. $classes[] = 'browser-insecure'; 
  6.  
  7. return $classes;