WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9330 closed defect (bug) (fixed)

wp-include/widget.php

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

Description

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 5 years ago.
Patch

Download all attachments as: .zip

Change History (6)

zeronex5 years ago

Patch

comment:1 marteki5 years ago

  • Cc marteki added
  • Keywords has-patch added

comment:2 marteki5 years ago

  • Keywords needs-testing added

comment:3 follow-up: scribu5 years ago

Those functions will likely be overritten. See #8441.

comment:4 in reply to: ↑ 3 azaozz5 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 azaozz5 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.