Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated parameter on thematic_category_archives function #28

Closed
scottnix opened this issue Jan 8, 2013 · 1 comment
Closed

Deprecated parameter on thematic_category_archives function #28

scottnix opened this issue Jan 8, 2013 · 1 comment
Labels

Comments

@scottnix
Copy link
Contributor

scottnix commented Jan 8, 2013

Such a minor thing, but I will forget if I don't mark it down.

Original

if (function_exists('childtheme_override_category_archives'))  {
    /**
     * @ignore
     */
    function thematic_category_archives() {
        childtheme_override_category_archives();
    }
} else {
    /**
     * Display category archives
     *
     * Added to the archive list on the page template Archives Page
     *
     * Override: childtheme_override_category_archives
     */
    function thematic_category_archives() { ?>
                <li id="category-archives" class="content-column">
                    <h2><?php _e('Archives by Category', 'thematic') ?></h2>
                    <ul>
                        <?php wp_list_categories(array('optioncount' => true,
                                                        'feed' => 'RSS',
                                                        'title_li' => '',
                                                        'show_count' => true)); ?>
                    </ul>
                </li>
<?php }
} // end category_archives

add_action('thematic_archives', 'thematic_category_archives', 3);

The optioncount array value isn't an avalible parameter for wp_list_categories, does nothing different if you remove it or set it to false. ;P

http://codex.wordpress.org/Template_Tags/wp_list_categories
http://codex.wordpress.org/Function_Reference/wp_list_cats

@ghost ghost self-assigned this Jan 8, 2013
@ghost
Copy link

ghost commented Jan 8, 2013

Good Catch.

@ghost ghost closed this as completed Jan 8, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant