Changeset 716
- Timestamp:
- 01/05/2004 01:43:01 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions.php
r713 r716 459 459 460 460 $pad = 7 - date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear)); 461 if ( 0 != $pad)461 if ($pad != 0 && $pad != 7) 462 462 echo "\n\t\t<td class='pad' colspan='$pad'> </td>"; 463 463 … … 1592 1592 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash; 1593 1593 global $querystring_start, $querystring_equal, $querystring_separator, $siteurl; 1594 $number = $wpdb->get_var("SELECT COUNT( *) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1';");1594 $number = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1';"); 1595 1595 if (0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status) { 1596 1596 echo $none;
Note: See TracChangeset
for help on using the changeset viewer.