Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 7 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's profile ryan Owned by: ryan's profile 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
19 years ago

  • Patch set to No

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

7 years ago

Note: See TracTickets for help on using tickets.