Make WordPress Core


Ignore:
Timestamp:
05/23/2013 06:40:16 PM (12 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-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
Note: See TracChangeset for help on using the changeset viewer.