Opened 8 years ago
#47166 new defect (bug)
When option gmt_offset is blank, wordpress will give a 500 error
| Reported by: | silvanthus | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Options, Meta APIs | Version: | 5.1.1 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
If for any reason the gmt_offset option is "", wordpress will give a type error:
A non-numeric value encountered in /wp-includes/functions.php on line 70 and 162
This can then only be solved by editing the database or reinstalling wordpress as the settings page cannot be loaded.
If a default value would be set (e.g. 0), the user can fix the problem in the settings page.
Note:
See TracTickets
for help on using tickets.