Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#5866 closed defect (bug) (fixed)

Initialize args as an array in wp_widget_rss_output

Reported by: fitztrev's profile fitztrev Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

I just tried calling wp_widget_rss_ouput() without passing it any arguments (which should be OK because they're optional according to the function). However it resulted in this error:

Warning: extract() [function.extract]: First argument should be an array in /var/www/trunk/wp-includes/widgets.php on line 1060

Error occurs because extract() needs to be passed an array, not a null string.

Attachments (1)

widget-rss.diff (458 bytes) - added by fitztrev 17 years ago.
Initialize $args as an array

Download all attachments as: .zip

Change History (4)

@fitztrev
17 years ago

Initialize $args as an array

#1 @fitztrev
17 years ago

  • Summary changed from wp_widget_rss_output to Initialize args as an array in wp_widget_rss_output

Forgot to finish the ticket's summary...

#2 @fitztrev
17 years ago

without passing it any arguments

I should clarify. I passed the function the RSS feed url, but not any 'args', which are the ones that are optional.

#3 @ryan
17 years ago

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

(In [6861]) Default args to array. Props fitztrev. fixes #5866

Note: See TracTickets for help on using tickets.