Make WordPress Core

Opened 5 years ago

#47166 new defect (bug)

When option gmt_offset is blank, wordpress will give a 500 error

Reported by: silvanthus's profile silvanthus Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.1.1
Component: Options, Meta APIs Keywords:
Focuses: Cc:

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.

Change History (0)

Note: See TracTickets for help on using tickets.