Make WordPress Core

Opened 7 years ago

Closed 7 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 7 years ago.

Download all attachments as: .zip

Change History (6)

7 years ago


#1 @marteki
7 years ago

  • Cc marteki added
  • Keywords has-patch added

#2 @marteki
7 years ago

  • Keywords needs-testing added

#3 follow-up: @scribu
7 years ago

Those functions will likely be overritten. See #8441.

#4 in reply to: ↑ 3 @azaozz
7 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.

#5 @azaozz
7 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.