Make WordPress Core

Ticket #44941: 44941.2.diff

File 44941.2.diff, 1.2 KB (added by donmhico, 5 years ago)

Removed the CSS part from 44941.diff and added the @since docs.

  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index be6d02809a..f02ede68bc 100644
    function do_settings_fields( $page, $section ) { 
    16851685 * page is first accessed.
    16861686 *
    16871687 * @since 3.0.0
     1688 * @since 5.3    Added support for 'info' and 'warning' as `$type`.
    16881689 *
    16891690 * @global array $wp_settings_errors Storage array of errors registered during this pageload
    16901691 *
    function do_settings_fields( $page, $section ) { 
    16921693 * @param string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
    16931694 * @param string $message The formatted message text to display to the user (will be shown inside styled
    16941695 *                        `<div>` and `<p>` tags).
    1695  * @param string $type    Optional. Message type, controls HTML class. Accepts 'error' or 'updated'.
    1696  *                        Default 'error'.
     1696 * @param string $type    Optional. Message type, controls HTML class. Accepts 'error', 'updated', 'info',
     1697 *                        or 'warning'. Default 'error'.
    16971698 */
    16981699function add_settings_error( $setting, $code, $message, $type = 'error' ) {
    16991700        global $wp_settings_errors;