[wp-trac] [WordPress Trac] #22094: Using permalinks causes call to second menu item after page load.

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 4 11:13:51 UTC 2012


#22094: Using permalinks causes call to second menu item after page load.
-----------------------------+--------------------------
 Reporter:  richwebs         |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Permalinks
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22094>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list