dashboard_browser_nag_class() –

You appear to be a bot. Output may be restricted

Description

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

Usage

$string[] = dashboard_browser_nag_class( $classes );

Parameters

$classes
( string[] ) required – Array of meta box classes.

Returns

string[] Modified array of meta box classes.

Source

File name: wordpress/wp-admin/includes/dashboard.php
Lines:

1 to 9 of 9
function dashboard_browser_nag_class( $classes ) {
  $response = wp_check_browser_version();

  if ( $response && $response['insecure'] ) {
    $classes[] = 'browser-insecure';
  }

  return $classes;
}
 

 View on GitHub View on Trac