Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27351 closed defect (bug) (fixed)

Warning: Cannot use a scalar value as an array in wp-admin/includes/media.php on line 2262

Reported by: nendeb55's profile nendeb55 Owned by: nacin's profile nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords:
Focuses: Cc:

Description

So, in wp-admin/includes/media, on line 2262, 2264, 2266 These line is throwing a warning:

Cause This line 2260:

	$q = isset( $q['paged'] ) ? intval( $q['paged'] ) : 0;

So I propose to change it to:

	$q['paged'] = isset( $q['paged'] ) ? intval( $q['paged'] ) : 0;

Thanks

Change History (3)

#1 @nendeb55
10 years ago

  • Component changed from General to Media
  • Version set to trunk

#2 @nacin
10 years ago

  • Milestone changed from Awaiting Review to 3.9

Oops! Thanks for the report :-)

#3 @nacin
10 years ago

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

In 27501:

Assign correct variable.

props nendeb55.
fixes #27351. see #14424, [27373].

Note: See TracTickets for help on using tickets.