Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#10610 closed defect (bug) (fixed)

Accessibilty Mode, Wrong Datatype

Reported by: dcole07 Owned by: azaozz
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Widgets Keywords:
Focuses: Cc:


When I'm on the Widgets page, using the Accessibility Mode, and I click add or edit on a widget, I get the following error on the next page that is loaded.
Error: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /wp-admin/widgets.php on line 271, referer: http://example.com/wp-admin/widgets.php[[BR]]


This was in a clean install of WordPress 2.9 revision 11812. No plugins were running, using the default theme, no patches applied.

Change History (3)

comment:1 azaozz5 years ago

Can't reproduce this. It's easy to fix but just curious, can you do var_dump($sidebars_widgets); between lines 37 and 38 in wp-admin/widgets.php.

comment:2 dcole075 years ago

Just to make sure, I created a new local install of WordPress 2.9 revision 11816, but still got the same thing. Seams odd that it didn't happen for you. Here is the data that is outputted:

array(1) {

array(12) {

string(7) "pages-2"
string(10) "calendar-2"
string(10) "archives-2"
string(7) "links-2"
string(6) "meta-2"
string(8) "search-2"
string(6) "text-2"
string(12) "categories-2"
string(14) "recent-posts-2"
string(17) "recent-comments-2"
string(5) "rss-2"
string(11) "tag_cloud-2"



comment:3 azaozz5 years ago

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

(In [11824]) Fix warning in wp-admin/widgets.php when using Accessibility Mode on brand new install, fixes #10610

Note: See TracTickets for help on using tickets.