[wp-trac] [WordPress Trac] #17621: The new WP 3.1.3 is giving an error within /wp-includes/query.php on line 2390
WordPress Trac
wp-trac at lists.automattic.com
Mon May 30 17:46:01 UTC 2011
#17621: The new WP 3.1.3 is giving an error within /wp-includes/query.php on line
2390
------------------------------+-----------------------------
Reporter: brunobbmagalhaes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1.3
Severity: normal | Keywords: has-patch
------------------------------+-----------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17621>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list