WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#1064 closed defect (bug) (fixed)

Use next_posts_link() and previous_posts_link() instead of posts_nav_link() in default theme.

Reported by: ryan Owned by: ryan
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: Optimization Keywords:
Focuses: Cc:

Description

The default theme uses posts_nav_link() in an inefficient way. It makes two calls to posts_nav_link() and discards one of the two directions each time. This results in two "next" calls and two "previous" calls being made when only one call is necessary. Using separate next_posts_link() and previous_posts_link() calls would be more efficient.

Change History (2)

comment:1 @ryan10 years ago

  • Patch set to No

comment:2 @ryan10 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.