Make WordPress Core

Opened 4 weeks ago

Last modified 3 weeks ago

#59887 accepted defect (bug)

The description of the `attributes` key for the parameter `$args` of the `wp_admin_notice` function is omitted.

Reported by: tmatsuur's profile tmatsuur Owned by: audrasjb's profile audrasjb
Milestone: 6.5 Priority: normal
Severity: normal Version: 6.4
Component: Administration Keywords: good-first-bug has-patch
Focuses: docs Cc:

Description (last modified by sabernhardt)

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.

Change History (3)

#1 @sabernhardt
3 weeks ago

  • Component changed from General to Administration
  • Description modified (diff)
  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to 6.5
  • Summary changed from The description of the `attribute` key for the parameter $args of the wp_admin_notice function is omitted. to The description of the `attributes` key for the parameter `$args` of the `wp_admin_notice` function is omitted.
  • Type changed from feature request to defect (bug)

#2 @audrasjb
3 weeks ago

  • Owner set to audrasjb
  • Status changed from new to accepted

This ticket was mentioned in PR #5666 on WordPress/wordpress-develop by @ashrafulsarkar.


3 weeks ago
#3

  • Keywords has-patch added; needs-patch removed

attributes key description added into wp_admin_notice function.

Trac ticket: #59887

Note: See TracTickets for help on using tickets.