Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9330 closed defect (bug) (fixed)


Reported by: zeronex Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.8
Component: General Keywords: has-patch needs-testing
Focuses: Cc:


Warning: array_keys() [function.array-keys]: The first argument should be an array in wordpress\wp-includes\widgets.php on line 1347

On line 1340 get_option is returning Array and not Array() which is causing this issue.

Attachments (1)

9330.patch (975 bytes) - added by zeronex 6 years ago.

Download all attachments as: .zip

Change History (6)

@zeronex6 years ago


comment:1 @marteki6 years ago

  • Cc marteki added
  • Keywords has-patch added

comment:2 @marteki6 years ago

  • Keywords needs-testing added

comment:3 follow-up: @scribu6 years ago

Those functions will likely be overritten. See #8441.

comment:4 in reply to: ↑ 3 @azaozz6 years ago

Replying to scribu:

Those functions will likely be overritten. See #8441.

You're right but lets fix this until these widgets are migrated to use the new class.

comment:5 @azaozz6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10789]) Fix php warning in widgets.php, props zeronex, fixes #9330

Note: See TracTickets for help on using tickets.