Make WordPress Core

Ticket #57323: 57323.diff

File 57323.diff, 1.9 KB (added by mcaskill, 3 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 6dc7cc931f..4dfddbdf99 100644
    a b function add_settings_error( $setting, $code, $message, $type = 'error' ) { 
    18461846 *
    18471847 * @param string $setting  Optional. Slug title of a specific setting whose errors you want.
    18481848 * @param bool   $sanitize Optional. Whether to re-sanitize the setting value before returning errors.
    1849  * @return array {
    1850  *     Array of settings errors.
    1851  *
    1852  *     @type string $setting Slug title of the setting to which this error applies.
    1853  *     @type string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
    1854  *     @type string $message The formatted message text to display to the user (will be shown inside styled
    1855  *                           `<div>` and `<p>` tags).
    1856  *     @type string $type    Optional. Message type, controls HTML class. Possible values include 'error',
    1857  *                           'success', 'warning', 'info'. Default 'error'.
     1849 * @return array[] {
     1850 *     Array of settings error arrays.
     1851 *
     1852 *     @type array ...$0 {
     1853 *         Associative array of setting error data.
     1854 *
     1855 *         @type string $setting Slug title of the setting to which this error applies.
     1856 *         @type string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
     1857 *         @type string $message The formatted message text to display to the user (will be shown inside styled
     1858 *                               `<div>` and `<p>` tags).
     1859 *         @type string $type    Optional. Message type, controls HTML class. Possible values include 'error',
     1860 *                               'success', 'warning', 'info'. Default 'error'.
     1861 *     }
    18581862 * }
    18591863 */
    18601864function get_settings_errors( $setting = '', $sanitize = false ) {