WordPress.org

Make WordPress Core

Changeset 9540


Ignore:
Timestamp:
11/06/2008 01:58:33 AM (10 years ago)
Author:
ryan
Message:

Fix notice

File:
1 edited

Legend:

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

    r9522 r9540  
    739739function wp_comment_form_unfiltered_html_nonce() {
    740740    global $post;
     741
     742    $post_id = 0;
     743    if ( !empty($post) )
     744        $post_id = $post->ID;
     745
    741746    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);
    743748}
    744749
Note: See TracChangeset for help on using the changeset viewer.