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
This commit is contained in:
parent
1aecc6c957
commit
9e9b9b5508
|
@ -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