From 6089ffbed11fcd72b1815aec81006192158b465b Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sun, 14 Jan 2024 08:40:59 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index c4ecb81f66..a3a5e56bfa 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -8876,6 +8876,7 @@ function wp_get_admin_notice( $message, $args = array() ) { * @type bool $dismissible Optional. Whether the admin notice is dismissible. Default false. * @type string $id Optional. The value of the admin notice's ID attribute. Default empty string. * @type string[] $additional_classes Optional. A string array of class names. Default empty array. + * @type string[] $attributes Optional. Additional attributes for the notice div. Default empty array. * @type bool $paragraph_wrap Optional. Whether to wrap the message in paragraph tags. Default true. * } */