From 9e9b9b55086e2182da57ec4b7f5fca5f14023388 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Aug 2013 05:28:09 +0000 Subject: [PATCH] Make sure $args is an array before treating it as such. fixes #25151 for trunk. Built from https://develop.svn.wordpress.org/trunk@25151 git-svn-id: http://core.svn.wordpress.org/trunk@25130 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 3ab1167740..8fa83fd7db 100644 --- a/wp-includes/comment-template.php +++ b/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';