Make WordPress Core

Changeset 24337


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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r24189 r24337  
    176176
    177177    function display_rows() {
    178         global $post, $id;
     178        global $post;
    179179
    180180        add_filter( 'the_title','esc_html' );
     
    192192            $att_title = _draft_or_post_title();
    193193?>
    194     <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
     194    <tr id='post-<?php echo $post->ID; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
    195195<?php
    196196
  • 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.