Skip to content

Commit 6089ffb

Browse files
committed
Docs: Improve wp_admin_notice() function docblock.
This changeset adds a description for the `attributes` key of `$args` in `wp_admin_notice()`. Props tmatsuur. Fixes #59887. git-svn-id: https://develop.svn.wordpress.org/trunk@57279 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9ae009f commit 6089ffb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8876,6 +8876,7 @@ function wp_get_admin_notice( $message, $args = array() ) {
88768876
* @type bool $dismissible Optional. Whether the admin notice is dismissible. Default false.
88778877
* @type string $id Optional. The value of the admin notice's ID attribute. Default empty string.
88788878
* @type string[] $additional_classes Optional. A string array of class names. Default empty array.
8879+
* @type string[] $attributes Optional. Additional attributes for the notice div. Default empty array.
88798880
* @type bool $paragraph_wrap Optional. Whether to wrap the message in paragraph tags. Default true.
88808881
* }
88818882
*/

0 commit comments

Comments
 (0)