Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#20192 closed defect (bug) (invalid)

Posts loaded twice if permalink setting is on

Reported by: themeprince Owned by:
Milestone: Priority: normal
Severity: major Version: 3.3.1
Component: General Keywords: reporter-feedback close
Focuses: Cc:

Description

If I set "post name" in permalink settings, the posts are called twice.

You can easily test it if you add this php code to the header.php and visit a blog post:

$x = get_option('ub_test');
update_option('ub_test',($x + 1));

The value will increase by two.

Change History (4)

#1 @duck_
10 years ago

  • Keywords reporter-feedback close added; needs-patch removed

This works as expected for me with the default theme (twentyeleven).

Have you tried disabling all plugins? If it continues to be a problem then I suspect that the theme is accidentally including header.php twice itself.

#2 follow-up: @nacin
10 years ago

This is simply a matter of browser prefetching, I bet.

#3 in reply to: ↑ 2 @johnbillion
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Replying to nacin:

This is simply a matter of browser prefetching, I bet.

Agreed. More info at #14382 & #12603.

#4 @themeprince
10 years ago

Thank you very much, that was it.

Note: See TracTickets for help on using tickets.