[wp-trac] [WordPress Trac] #21143: Add a hook for when no blog is found (in addition to NOBLOGREDIRECT)
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 24 22:11:35 UTC 2012
#21143: Add a hook for when no blog is found (in addition to NOBLOGREDIRECT)
------------------------------+------------------
Reporter: jamescollins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Multisite | Version:
Severity: normal | Resolution:
Keywords: needs-patch punt |
------------------------------+------------------
Changes (by nacin):
* keywords: has-patch => needs-patch punt
Comment:
The variables in that file are a bit confusing. `$domain, $blogname,
$current_site, $current_blog, $path`
Looks like the most important ones there are $domain and $path, along with
$current_site and $blogname (which is either a piece of the domain, or a
piece or all of the path). $current_blog is going to be null, and if no
blog was found, then passing it doesn't really make any sense.
If we're going to add an action here, we should probably add it to the
next block too, which handles non-subdomain can't-find-the-blog
situations.
I really want to just rewrite ms-settings.php one of these days. Since
this can be handled with sunrise.php (though fairly annoying to do), I'm
tempted to punt, unless we can come up a patch that consistently fires
this hook for every time we can't find a site. (These are not the only two
instances.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21143#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list