Opened 6 years ago
Closed 6 years ago
#3653 closed defect (bug) (fixed)
Fix fatal error in wporg-developer theme
Reported by: | keesiemeijer | Owned by: | obenland |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-patch |
Cc: |
Description
With PHP 7.2.5 I get this error:
Fatal error: Uncaught Error: Cannot use string offset as an array in /srv/www/wp-reference/public/wp-content/themes/wporg-developer/inc/template-tags.php:786
This is because a string variable is used as an array. The following patch will instantiate the variable as an array.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Create variable as array