From 2b3844979514c137eabeb8790dbc0d3fe51bf315 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 May 2017 00:16:43 +0000 Subject: [PATCH] Administration: Update the docs for `wp_check_browser_version()`. Correct `update_url` key name, add missing `platform` key. Props coffee2code. Fixes #40839. git-svn-id: https://develop.svn.wordpress.org/trunk@40822 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index b05f839125..61f1c8f62b 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1508,12 +1508,13 @@ function wp_check_browser_version() { /** * Response should be an array with: - * 'name' - string - A user friendly browser name + * 'platform' - string - A user-friendly platform name, if it can be determined + * 'name' - string - A user-friendly browser name * 'version' - string - The version of the browser the user is using * 'current_version' - string - The most recent version of the browser * 'upgrade' - boolean - Whether the browser needs an upgrade * 'insecure' - boolean - Whether the browser is deemed insecure - * 'upgrade_url' - string - The url to visit to upgrade + * 'update_url' - string - The url to visit to upgrade * 'img_src' - string - An image representing the browser * 'img_src_ssl' - string - An image (over SSL) representing the browser */