Changeset 9540
- Timestamp:
- 11/06/2008 01:58:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r9522 r9540 739 739 function wp_comment_form_unfiltered_html_nonce() { 740 740 global $post; 741 742 $post_id = 0; 743 if ( !empty($post) ) 744 $post_id = $post->ID; 745 741 746 if ( current_user_can('unfiltered_html') ) 742 wp_nonce_field('unfiltered-html-comment_' . $post ->ID, '_wp_unfiltered_html_comment', false);747 wp_nonce_field('unfiltered-html-comment_' . $post_id, '_wp_unfiltered_html_comment', false); 743 748 } 744 749
Note: See TracChangeset
for help on using the changeset viewer.