[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
Tue Jul 3 01:33:30 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: Awaiting Review
Component: Multisite | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by jamescollins):
The new 'no_blog_redirect' hook would fire before mu-plugins are
initialised, which means that a custom function would have to hook into
'no_blog_redirect' by using sunrise.php.
The attached sunrise.php file is a simple example that demonstrates how
this new hook could be used.
The end result is a relatively simple way to add custom logic that only
gets executed for requests that don't match an existing blog/site on a
Multisite install.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21143#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list