[wp-trac] [WordPress Trac] #59887: The description of the `attributes` key for the parameter `$args` of the `wp_admin_notice` function is omitted. (was: The description of the `attribute` key for the parameter $args of the wp_admin_notice function is omitted.)

WordPress Trac noreply at wordpress.org
Sat Nov 11 15:25:56 UTC 2023


#59887: The description of the `attributes` key for the parameter `$args` of the
`wp_admin_notice` function is omitted.
----------------------------------------+---------------------
 Reporter:  tmatsuur                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.5
Component:  Administration              |     Version:  6.4
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  docs
----------------------------------------+---------------------
Changes (by sabernhardt):

 * component:  General => Administration
 * milestone:  Awaiting Review => 6.5
 * keywords:   => needs-patch good-first-bug
 * type:  feature request => defect (bug)


Old description:

> The description of the parameter $args in the wp_get_admin_notice
> function has the contents of the `attributes` key, but the
> wp_admin_notice function does not.
>
> {{{
>  *     @type string[] $attributes         Optional. Additional attributes
> for the notice div. Default empty array.
> }}}
>
> The parameters of these two functions are common and should be unified.

New description:

 The description of the parameter `$args` in the `wp_get_admin_notice`
 function has the contents of the `attributes` key, but the
 `wp_admin_notice` function does not.

 {{{
  *     @type string[] $attributes         Optional. Additional attributes
 for the notice div. Default empty array.
 }}}

 The parameters of these two functions are common and should be unified.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59887#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list