From 9f82236da898a63fcc4d5987f189aa2e962fcc54 Mon Sep 17 00:00:00 2001 From: jeremyfelt Date: Tue, 21 Jul 2026 12:53:03 -0700 Subject: [PATCH] Administration: allow optional `wp_get_toggletip()` `$args` as documented https://core.trac.wordpress.org/ticket/55343 `wp_get_toggletip()` has similarly documented "optional" `$args` as `wp_get_tooltip()`. This updates the function signature to match. --- src/wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index ab3977a496e82..2e8058ae16d82 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -426,7 +426,7 @@ function wp_get_tooltip( $content, $args = array() ) { * } * @return string Tooltip HTML markup, or an empty string when no content is provided. */ -function wp_get_toggletip( $content, $args ) { +function wp_get_toggletip( $content, $args = array() ) { $args['type'] = 'toggletip'; return wp_get_tooltip_helper( $content, $args ); }