diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 7487bdb45f..e62a3b3a67 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -175,7 +175,7 @@ class WP_Media_List_Table extends WP_List_Table { } function display_rows() { - global $post, $id; + global $post; add_filter( 'the_title','esc_html' ); $alt = ''; @@ -191,7 +191,7 @@ class WP_Media_List_Table extends WP_List_Table { $post_owner = ( get_current_user_id() == $post->post_author ) ? 'self' : 'other'; $att_title = _draft_or_post_title(); ?> - post_status ); ?>' valign="top"> + post_status ); ?>' valign="top"> get_column_info(); diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 15d9ee32de..48db1f7ea2 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1597,10 +1597,8 @@ function wp_list_comments($args = array(), $comments = null ) { * @return void */ function comment_form( $args = array(), $post_id = null ) { - global $id; - if ( null === $post_id ) - $post_id = $id; + $post_id = get_the_ID(); else $id = $post_id;