mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Comments: in wp_handle_comment_submission()
, $_wp_unfiltered_html_comment
is passed as part of $comment_data
, but is not used locally.
See #37771. Built from https://develop.svn.wordpress.org/trunk@38313 git-svn-id: http://core.svn.wordpress.org/trunk@38254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3755823702
commit
dcb0261664
@ -2741,7 +2741,7 @@ function _close_comments_for_old_post( $open, $post_id ) {
|
||||
function wp_handle_comment_submission( $comment_data ) {
|
||||
|
||||
$comment_post_ID = $comment_parent = 0;
|
||||
$comment_author = $comment_author_email = $comment_author_url = $comment_content = $_wp_unfiltered_html_comment = null;
|
||||
$comment_author = $comment_author_email = $comment_author_url = $comment_content = null;
|
||||
|
||||
if ( isset( $comment_data['comment_post_ID'] ) ) {
|
||||
$comment_post_ID = (int) $comment_data['comment_post_ID'];
|
||||
@ -2761,9 +2761,6 @@ function wp_handle_comment_submission( $comment_data ) {
|
||||
if ( isset( $comment_data['comment_parent'] ) ) {
|
||||
$comment_parent = absint( $comment_data['comment_parent'] );
|
||||
}
|
||||
if ( isset( $comment_data['_wp_unfiltered_html_comment'] ) && is_string( $comment_data['_wp_unfiltered_html_comment'] ) ) {
|
||||
$_wp_unfiltered_html_comment = trim( $comment_data['_wp_unfiltered_html_comment'] );
|
||||
}
|
||||
|
||||
$post = get_post( $comment_post_ID );
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38312';
|
||||
$wp_version = '4.7-alpha-38313';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user