]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/comment-template.php
WordPress 3.6.1
[autoinstalls/wordpress.git] / wp-includes / comment-template.php
index 9a09d28d540eaf0e038cf486e3da9fbbadbb612a..afbee05f8fe7c2020010ee9a6523a0da1eac8e8a 100644 (file)
@@ -1606,6 +1606,7 @@ function comment_form( $args = array(), $post_id = null ) {
        $user = wp_get_current_user();
        $user_identity = $user->exists() ? $user->display_name : '';
 
        $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';
 
        if ( ! isset( $args['format'] ) )
                $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';