Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-includes/general-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first instinct was that this should be required for toggle tips, but in fact I don't think that it does need to be; if it's left out, it'll be a button with label 'Help' and the content passed in the first argument in the popup; all other elements will use their default args. So yes, I agree that this makes sense.

I'm going to commit a fairly large change to this very soon, however, so it may make more sense for me to just add this change to #12528

$args['type'] = 'toggletip';
return wp_get_tooltip_helper( $content, $args );
}
Expand Down
Loading