mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 20:58:55 +00:00
Fix unfiltered_html_comment nonce, props nacin, fixes #18319
git-svn-id: https://develop.svn.wordpress.org/trunk@18852 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -356,8 +356,11 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
|
||||
<input type="hidden" name="position" id="position" value="<?php echo $position; ?>" />
|
||||
<input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" />
|
||||
<input type="hidden" name="mode" id="mode" value="<?php echo esc_attr($mode); ?>" />
|
||||
<?php wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false ); ?>
|
||||
<?php wp_comment_form_unfiltered_html_nonce(); ?>
|
||||
<?php
|
||||
wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false );
|
||||
if ( current_user_can( 'unfiltered_html' ) )
|
||||
wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false );
|
||||
?>
|
||||
<?php if ( $table_row ) : ?>
|
||||
</td></tr></tbody></table>
|
||||
<?php else : ?>
|
||||
|
||||
Reference in New Issue
Block a user