Skip to content

Consolidate pagination link functions #60

Description

@splorp

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions