Make WordPress Core

Changeset 21736


Ignore:
Timestamp:
09/04/2012 06:23:51 PM (14 years ago)
Author:
nacin
Message:

Restore global references that broke the media and comment list tables. Todo, make list tables rely far less on global state. see #21309.

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r21735 r21736  
    303303
    304304        function single_row( $a_comment ) {
    305                 global $comment;
    306                 $post = get_post();
     305                global $post, $comment;
    307306
    308307                $comment = $a_comment;
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r21735 r21736  
    157157
    158158        function display_rows() {
    159                 $post = get_post();
    160                 $id = $post->ID;
     159                global $post, $id;
    161160
    162161                add_filter( 'the_title','esc_html' );
Note: See TracChangeset for help on using the changeset viewer.