wp_timezone_choice in wp-admin/options-general.php breaks page on php 5.3
|Reported by:||demonicpagan||Owned by:|
|Severity:||normal||Keywords:||timezone, wp_timezone_choice, options, general|
After upgrading the php on my server to php 5.3, I noticed my General Settings in the admin page never displayed and broke the page.
Further digging through the code after people mentioning in the support forums about the timezone, I initially removed that section of the page (starting on line 97). Page loaded fine (minus the timezone section due to removal).
I evaluated the if statement (if ( !wp_timezone_supported() ) :) to see what was returned. It returned false leading me to the else statement.
Just placing the code within the else statement where the timezone code originated and reuploading to my server confirmed it was this section of code that was causing some problems.
I didn't have to dissect much further as I found out that by slowly adding things into the table data section, starting with the select box, that this bit was causing problems.
Removing the <select id="timezone_string" name="timezone_string"> & </select> from around the php call and just pasting that itself brought me back to the original issue, page not displaying properly.
I am unable to dissect any further, but I'm gathering that somewhere within the wp_timezone_choice function, something is not working properly.
$tzstring returns America/Chicago on my platform
Change History (7)
- Component changed from Administration to Date/Time
- Priority changed from high to normal
- Severity changed from major to normal