[wp-hackers] WP_DEBUG Notice

Baki Goxhaj banago at gmail.com
Sat Oct 30 15:50:49 UTC 2010


I'm developing a theme and I'm getting this notice only when I visit a page.
this does not show up on homepage or posts.
*
*
>
> *Notice*: Only variables should be assigned by reference in *
> /homepages/38/d285591449/htdocs/owsh.org/new/wp-includes/query.php* on
> line *1508*
>

Here is the code from query.php:

        if ( '' != $qv['pagename'] ) {
            $this->queried_object =& get_page_by_path($qv['pagename']); *->This
is line 1508*
            if ( !empty($this->queried_object) )
                $this->queried_object_id = (int) $this->queried_object->ID;
            else*

*What can be causing this.

Kindly,

Baki Goxhaj
www.wplancer.com | www.banago.info | www.lintuts.com


More information about the wp-hackers mailing list