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

Consolidate pagination link functions #60

Open
splorp opened this issue Feb 14, 2014 · 0 comments
Open

Consolidate pagination link functions #60

splorp opened this issue Feb 14, 2014 · 0 comments

Comments

@splorp
Copy link
Owner

splorp commented Feb 14, 2014

We currently use several separate functions to test whether pagination links should be shown on posts, pages, archives, and images. These could be consolidated into a single, simplified function that uses a case switch.

The affected functions are:

show_post_link_nav()
show_posts_link_nav()
show_comments_link_nav()
show_image_link_nav()

The new function should be named using the tersus_ prefix and use a function_exists wrapper similar to other pluggable theme functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant