--- wp-includes/widgets.php 2008-08-06 15:50:39.000000000 +0000 +++ wp-includes/widgets.php 2008-08-29 12:40:25.908875000 +0000 @@ -896,6 +896,10 @@ } function wp_widget_recent_entries($args) { + global $post, $wp_query; + + $id_a = $wp_query->post->ID; + if ( '%BEG_OF_TITLE%' != $args['before_title'] ) { if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) return print($output); @@ -913,13 +917,14 @@ $number = 15; $r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish')); if ($r->have_posts()) : ?>