Ticket #10091: 10091.diff
| File 10091.diff, 660 bytes (added by , 17 years ago) |
|---|
-
wp-includes/general-template.php
969 969 970 970 // Quick check. If we have no posts at all, abort! 971 971 if ( !$posts ) { 972 $gotsome = $wpdb->get_var("SELECT 1 FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1");972 $gotsome = $wpdb->get_var("SELECT 1 as test FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1"); 973 973 if ( !$gotsome ) { 974 974 $cache[ $key ] = ''; 975 975 wp_cache_set( 'get_calendar', $cache, 'calendar' );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)