@@ -30,7 +30,7 @@ Includes a function for rendering an unordered list of years with months, linked
...
@@ -30,7 +30,7 @@ Includes a function for rendering an unordered list of years with months, linked
Add the function `date_based_taxonomy_archives()` to any template element that appears on a taxonomy archive. The function accepts an array containing the following arguments:
Add the function `date_based_taxonomy_archives()` to any template element that appears on a taxonomy archive. The function accepts an array containing the following arguments:
* `taxonomies` - array of taxonomy slugs.
* `taxonomies` - array of taxonomy slugs.
* `show_post_counts` - boolean value specifying whether or not to display show counts in parenthesis after archive links.
* `show_post_count` - boolean value specifying whether or not to display show counts in parenthesis after archive links.
* `limit` - integer specifying the number of archive links to show. Omit to show all archive links for the specified taxonomy.
* `limit` - integer specifying the number of archive links to show. Omit to show all archive links for the specified taxonomy.
* `before` - output to display before archive link.
* `before` - output to display before archive link.
* `after` - output to display after archive link.
* `after` - output to display after archive link.
...
@@ -42,10 +42,20 @@ Add the function `date_based_taxonomy_archives()` to any template element that a
...
@@ -42,10 +42,20 @@ Add the function `date_based_taxonomy_archives()` to any template element that a
== Changelog ==
== Changelog ==
= 0.3 =
* Remove unnecessary uses of `$wpdb->prepare()` that were incorrectly implemented, resulting in PHP warnings when `WP_DEBUG` was enabled.
* Convert plugin to a singelton pattern instead of relying on a global variable.
* Protect class variables and expose them only through a magic getter. Allows for more flexibility in adding class variables in the future.
* Localize large post counts for display, when requested.
* Correct phpdoc implementation.
= 0.2 =
= 0.2 =
Initial public release
* Initial public release
== Upgrade Notice ==
== Upgrade Notice ==
= 0.3 =
Maintenance release encouraged for all users. Of note, resolves a PHP warning due to an improper use of `$wpdb->prepare()`.