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
This commit is contained in:
parent
7f0891c1a1
commit
1d00e1d88a
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user