WordPress.org

Make WordPress Core

Opened 7 months ago

#47166 new defect (bug)

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

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

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.