- New
show_comment_count
parameter. Set to0
orfalse
to hide the comment count. - New
format_month_year
parameter to change the month + year date format. Any valid PHP date format is acceptable. - New
format_post_date
parameter to change the post date format. Any valid PHP date format is acceptable.
- By default, the comment count will only appear if comments are open or the post has existing comments.
- When a post doesn't have a title, display the post ID.
- Display the correct monthly archive link for custom post types.
- New
order
parameter. Posts can now be ordered in ascending (ASC
) or descending (DESC
). The default is descending.
- Minor code cleanup.
- Passes the
clean-my-archives
tag intoshortcode_atts()
so that devs can filter it.
- Inline docs cleanup.
- Load translations in admin so plugin headers are translated there.
- Validate integers passed through the shortcode as actual integers.
- Escaped URLs to harden security.
- Escaped text strings to harden security.
- Use
wp_reset_postdata()
, notwp_reset_query()
. - Smarter code formatting for day and comments number.
- Add support for custom post types or a mix of any post type.
- Code formatting and inline doc cleanup.
- Use the newer
ignore_sticky_posts
instead ofcaller_get_posts
. - Add
<span>
wrappers for styling the day and comments number. - Add
.day-duplicate
class to<li>
if it's a repeating day. - Add
<div class="clean-my-archives">
wrapper for entire output.
- Plugin launch. Everything's new!