Make WordPress Core

Ticket #35506: 35506.diff

File 35506.diff, 454 bytes (added by rachelbaker, 9 years ago)

Use the GLOBALS array when using unset()

  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    499500                $this->single_row_columns( $comment );
    500501                echo "</tr>\n";
    501502
    502                 unset( $post, $comment );
     503                unset( $GLOBALS['post'], $GLOBALS['comment'] );
    503504        }
    504505
    505506        /**