[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 Sep 25 05:56:04 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: punt has-patch |
----------------------------+------------------
Changes (by jamescollins):
* keywords: needs-patch punt => punt has-patch
Comment:
Thanks for your input Andrew. I agree that the code is in need of a
rewrite!
{{{21143_2.diff}}} is another attempt at this.
Rather than duplicate the same {{{do_action()}}} code in multiple places,
I've elected for a single call further up in the code.
The parameters for the hook have also been cleaned up, as per your
suggestions.
It should now fire for both subdomain and subdirectory installs, and it'll
also fire before {{{NOBLOGREDIRECT}}} comes into play.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21143#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list