[wp-trac] Re: [WordPress Trac] #7976: Old Slug Redirect with Custom
Structure
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 27 13:05:37 GMT 2008
#7976: Old Slug Redirect with Custom Structure
----------------------+-----------------------------------------------------
Reporter: ShaneF | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.7
Component: General | Version: 2.7
Severity: critical | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by ShaneF):
Here is $wp_query from "http://bugssite.org/blog/2008/07/28/left-4-dead/":
{{{
WP_Query Object
(
[query_vars] => Array
(
[year] => 2008
[monthnum] => 7
[day] => 28
[name] => left-4-dead
[error] =>
[m] => 0
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[hour] =>
[static] =>
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author_name] =>
[feed] =>
[tb] =>
[paged] =>
[comments_popup] =>
[meta_key] =>
[meta_value] =>
[preview] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__in] => Array
(
)
[post__not_in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[caller_get_posts] =>
[suppress_filters] =>
[post_type] => post
[posts_per_page] => 7
[nopaging] =>
[comments_per_page] => 20
[order] => DESC
[orderby] => posts.post_date DESC
)
[request] => SELECT posts.* FROM posts WHERE 1=1 AND
YEAR(posts.post_date)='2008' AND MONTH(posts.post_date)='7' AND
DAYOFMONTH(posts.post_date)='28' AND posts.post_name = 'left-4-dead' AND
posts.post_type = 'post' ORDER BY posts.post_date DESC
[post_count] => 1
[current_post] => -1
[in_the_loop] =>
[post] => stdClass Object
(
[comment_status] => closed
[ping_status] => closed
)
[comments] =>
[comment_count] => 0
[current_comment] => -1
[comment] =>
[found_posts] => 0
[max_num_pages] => 0
[max_num_comment_pages] => 0
[is_single] => 1
[is_preview] =>
[is_page] =>
[is_archive] =>
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] =>
[is_404] =>
[is_comments_popup] =>
[is_admin] =>
[is_attachment] =>
[is_singular] => 1
[is_robots] =>
[is_posts_page] =>
[is_paged] =>
[query] => Array
(
[year] => 2008
[monthnum] => 07
[day] => 28
[name] => left-4-dead
)
[posts] => Array
(
[0] => stdClass Object
(
[comment_status] => closed
[ping_status] => closed
)
)
)
}}}
404 Error Returns: 0
{{{
$wp_query->query_vars['name'] is: left-4-dead
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7976#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list