﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
12647,$wp_query doesn't report the full pagename for nested pages,dphiffer,ryan,"I've just discovered a bug in my JSON API plugin where it is unable to introspect on sub-pages. Instead of getting the page's data in JSON format (as you do for pages at the root level), the API returns the same response as if you had requested a non-existent page. Consider the following:

$pagename = get_query_var('pagename');
query_posts(""pagename=$pagename"");

If you run that code against a path like ""/page/subpage/"" you will get a 404. In this case the value of $pagename from the first line is going to be 'subpage', but the query_posts pagename parameter is expecting a full path like 'page/subpage'.",defect (bug),closed,normal,,Query,,normal,worksforme,,dphiffer
