Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 3 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:


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 (3)

#1 @ryan
15 years ago

  • Patch set to No

#2 @ryan
15 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

This ticket was mentioned in Slack in #core-editor by joshuawold. View the logs.

3 years ago

Note: See TracTickets for help on using tickets.