In `comment_form()`, ensure that filtered arguments contain all required default values.
props boonebgorges. fixes #32312 for trunk. Built from https://develop.svn.wordpress.org/trunk@32511 git-svn-id: http://core.svn.wordpress.org/trunk@32481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d40fe7d80b
commit
96f787260f
|
@ -2252,6 +2252,9 @@ function comment_form( $args = array(), $post_id = null ) {
|
|||
*/
|
||||
$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
|
||||
|
||||
// Ensure that the filtered args contain all required default values.
|
||||
$args = array_merge( $defaults, $args );
|
||||
|
||||
if ( comments_open( $post_id ) ) : ?>
|
||||
<?php
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32510';
|
||||
$wp_version = '4.3-alpha-32511';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue