Make WordPress Core

Ticket #42786: 42786.2.diff

File 42786.2.diff, 1.1 KB (added by stevenlinx, 7 years ago)
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 0c8c863ec7..8530278f1a 100644
    a b function add_settings_error( $setting, $code, $message, $type = 'error' ) { 
    14371437 *
    14381438 * @param string $setting Optional slug title of a specific setting who's errors you want.
    14391439 * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
    1440  * @return array Array of settings errors
     1440 * @return array {
     1441 *     Array of settings errors
     1442 *
     1443 *     @type string $setting    Slug title of the setting to which this error applies.
     1444 *     @type string $code       Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
     1445 *     @type string $message    The formatted message text to display to the user (will be shown inside styled `<div>` and `<p>` tags).
     1446 *     @type string $type       Optional. Message type, controls HTML class. Accepts 'error' or 'updated'. Default 'error'.
     1447 * }
    14411448 */
    14421449function get_settings_errors( $setting = '', $sanitize = false ) {
    14431450        global $wp_settings_errors;