WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#17621 closed defect (bug) (duplicate)

The new WP 3.1.3 is giving an error within /wp-includes/query.php on line 2390

Reported by: brunobbmagalhaes Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1.3
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The following fragment from the file /wp-includes/query.php is throwing a php notice when accessing /wp-admin/upload.php:

2390: $q_status = explode(',', $q['post_status']);

The solution I found is to replace the above with:

2390: if(!is_array($q['post_status'])) {
2391: 	$q_status = explode(',', $q['post_status']);
2392: } else {
2393: 	$q_status = $q['post_status'];
2394: }

I hope I helped.

Regards,
Bruno

Change History (2)

comment:1 @aaroncampbell4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#17556 #17559 #17600

You can temporarily fix it with the Hotfix plugin

comment:2 @brunobbmagalhaes4 years ago

Sorry, I forgot to search for previous bug reports. My bad.

Regards,
Bruni

Note: See TracTickets for help on using tickets.