[wp-trac] [WordPress Trac] #20601: Author archives queries should return a 404 when the user isn't a member of the blog
WordPress Trac
noreply at wordpress.org
Wed Feb 26 17:48:08 UTC 2014
#20601: Author archives queries should return a 404 when the user isn't a member of
the blog
----------------------------------------+------------------------
Reporter: yoavf | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.9
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: multisite
----------------------------------------+------------------------
Comment (by markjaquith):
wonderboymusic — the problem with that last unit test was that you were
switching to a blog with different rewrite rules. So the author posts
query was coming through as a 404ing Page query. `$wp_rewrite->init()`
after `switch_to_blog()` sorted that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20601#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list