Make WordPress Core

Opened 13 years ago

Closed 13 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 Owned by: nacin
Priority: normal Milestone: 3.9
Component: Media Version: 3.9
Severity: normal Keywords:
Cc: Focuses:

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
13 years ago

  • Component General → Media
  • Version → trunk

#2 @nacin
13 years ago

  • Milestone Awaiting Review → 3.9

Oops! Thanks for the report :-)

#3 @nacin
13 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In 27501:

Assign correct variable.

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

Note: See TracTickets for help on using tickets.