Hiding comments_template() call

While working on my template that comments_template() was being called for all pages and posts even if the comments were disabled. Here’s the solution I used: This is the original piece of code on the template: This will show the comments template even if you have disabled comments for a certain post/page, to fix this all you need is to confirm weather comments are active or not for this post/page:

wp_get_archives() hack

I did some changes, very simple ones actually, to wp_get_archives(). the purpose was to hide the first month that wp_get_archives() shows, which is the current month. edit: the code i posted earlier was not ok, so I fixed it and pasted in gist.github.