Index: wp-includes/general-template.php =================================================================== --- wp-includes/general-template.php (revision 17660) +++ wp-includes/general-template.php (working copy) @@ -28,7 +28,7 @@ if ( isset($name) ) $templates[] = "header-{$name}.php"; - $templates[] = "header.php"; + $templates[] = 'header.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -57,7 +57,7 @@ if ( isset($name) ) $templates[] = "footer-{$name}.php"; - $templates[] = "footer.php"; + $templates[] = 'footer.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -86,7 +86,7 @@ if ( isset($name) ) $templates[] = "sidebar-{$name}.php"; - $templates[] = "sidebar.php"; + $templates[] = 'sidebar.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -569,7 +569,7 @@ $my_year = substr($m, 0, 4); $my_month = $wp_locale->get_month(substr($m, 4, 2)); $my_day = intval(substr($m, 6, 2)); - $title = $my_year . ($my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : ""); + $title = $my_year . ($my_month ? $t_sep . $my_month : '') . ($my_day ? $t_sep . $my_day : ''); } // If there's a year @@ -843,7 +843,7 @@ else // custom $link_html = "\t$before$text$after\n"; - $link_html = apply_filters( "get_archives_link", $link_html ); + $link_html = apply_filters( 'get_archives_link', $link_html ); return $link_html; } @@ -916,7 +916,7 @@ //filters $where = apply_filters('getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r ); - $join = apply_filters('getarchives_join', "", $r); + $join = apply_filters('getarchives_join', '', $r); $output = ''; @@ -1016,7 +1016,7 @@ } } } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { - $orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC "; + $orderby = ('alpha' == $type) ? 'post_title ASC ' : 'post_date DESC '; $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; $key = md5($query); $cache = wp_cache_get( 'wp_get_archives' , 'general'); @@ -1210,7 +1210,7 @@ $ak_title_separator = ', '; $ak_titles_for_day = array(); - $ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom " + $ak_post_titles = $wpdb->get_results('SELECT ID, post_title, DAYOFMONTH(post_date) as dom ' ."FROM $wpdb->posts " ."WHERE post_date >= '{$thisyear}-{$thismonth}-01 00:00:00' " ."AND post_date <= '{$thisyear}-{$thismonth}-{$last_day} 23:59:59' " @@ -1248,7 +1248,7 @@ $calendar_output .= '