From 1d00e1d88ac026f492024838a3df142e3ccc546e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Aug 2013 05:27:03 +0000 Subject: [PATCH] Make sure $args is an array before treating it as such. fixes #25151 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@25151 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 3ab1167740..8fa83fd7db 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1606,6 +1606,7 @@ function comment_form( $args = array(), $post_id = null ) { $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; + $args = wp_parse_args( $args ); if ( ! isset( $args['format'] ) ) $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';