Using permalinks causes call to second menu item after page load.
|Reported by:||richwebs||Owned by:|
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.