From 132942b9faa862cb0b019e1f3aeffab38b9a9c2c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 8 Aug 2020 12:39:06 +0000 Subject: [PATCH] Docs: Document the return value of `get_settings_errors()` using hash notation. Props stevenlinx, webdevmattcrom, atachibana. Fixes #42786. Built from https://develop.svn.wordpress.org/trunk@48760 git-svn-id: http://core.svn.wordpress.org/trunk@48522 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 11 ++++++++++- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 2feffdf8c4..d77d2104da 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1797,7 +1797,16 @@ function add_settings_error( $setting, $code, $message, $type = 'error' ) { * * @param string $setting Optional. Slug title of a specific setting whose errors you want. * @param bool $sanitize Optional. Whether to re-sanitize the setting value before returning errors. - * @return array Array of settings errors. + * @return array { + * Array of settings errors. + * + * @type string $setting Slug title of the setting to which this error applies. + * @type string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. + * @type string $message The formatted message text to display to the user (will be shown inside styled + * `
` and `

` tags). + * @type string $type Optional. Message type, controls HTML class. Possible values include 'error', + * 'success', 'warning', 'info'. Default 'error'. + * } */ function get_settings_errors( $setting = '', $sanitize = false ) { global $wp_settings_errors; diff --git a/wp-includes/version.php b/wp-includes/version.php index 47141512b2..9ae5fd18e0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48758'; +$wp_version = '5.6-alpha-48760'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.