WordPress.org

Make WordPress Core

#22094 closed defect (bug) (duplicate)

Using permalinks causes call to second menu item after page load.

Reported by: richwebs Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.2
Component: Permalinks Keywords:
Focuses: Cc:

Description

On a fresh install of 3.4.2 add a new page, turn on any permalink option other than 'default'. Add $title = get_the_title(); to header.php add a break point after it to debug.

Click the 'sample page' on the frontend, the correct page will load, and before it loads, $title will be 'sample page', the output is correct.

but... the system then runs again, and $title is now the name of the new page just added, so all functions run again, based on that page. There is no output so the the frontend works as it should, but the backend system is running twice on two separate pages.

If the 'default' option is selected in permalink settings. This behaviour does not happen. The system runs on the correct page and once only.

Change History (1)

comment:1 SergeyBiryukov19 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.