[wp-trac] [WordPress Trac] #20756: wrong reference in function &get_pages
WordPress Trac
wp-trac at lists.automattic.com
Sat May 26 11:35:27 UTC 2012
#20756: wrong reference in function &get_pages
--------------------------+-----------------------------
Reporter: thomask | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.2
Severity: trivial | Keywords: needs-patch
--------------------------+-----------------------------
wp-includes/post.php line 3326
{{{
function &get_pages($args = '') {
}}}
should be
{{{
function get_pages($args = '') {
}}}
otherwise the
{{{
return false;
}}}
e.g. on line 3347 when requesting get_page with non-hierarchical post-type
would throw something like
{{{
Notice: Only variable references should be returned by reference in
/var/www/vhosts/money.cz/httpdocs/wp-includes/post.php on line 3347
}}}
(sorry i do not know how to make patches)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20756>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list