Make WordPress Core


Ignore:
Timestamp:
05/23/2013 06:40:16 PM (11 years ago)
Author:
nacin
Message:

Remove use of global $id from comment_form() and the media list table. see #24330.

File:
1 edited

Legend:

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

    r24207 r24337  
    15981598 */
    15991599function comment_form( $args = array(), $post_id = null ) {
    1600     global $id;
    1601 
    16021600    if ( null === $post_id )
    1603         $post_id = $id;
     1601        $post_id = get_the_ID();
    16041602    else
    16051603        $id = $post_id;
Note: See TracChangeset for help on using the changeset viewer.