Make WordPress Core


Ignore:
Timestamp:
10/01/2011 12:19:07 AM (14 years ago)
Author:
azaozz
Message:

Fix unfiltered_html_comment nonce, props nacin, fixes #18319

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r18803 r18852  
    357357    <input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" />
    358358    <input type="hidden" name="mode" id="mode" value="<?php echo esc_attr($mode); ?>" />
    359     <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false ); ?>
    360     <?php wp_comment_form_unfiltered_html_nonce(); ?>
     359    <?php
     360        wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false );
     361        if ( current_user_can( 'unfiltered_html' ) )
     362            wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false );
     363    ?>
    361364<?php if ( $table_row ) : ?>
    362365</td></tr></tbody></table>
Note: See TracChangeset for help on using the changeset viewer.