[wp-trac] [WordPress Trac] #21143: Add a hook for when no blog is found (in addition to NOBLOGREDIRECT)

WordPress Trac noreply at wordpress.org
Tue Mar 4 02:04:41 UTC 2014


#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.9
Component:  Bootstrap/Load          |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:  multisite
------------------------------------+------------------------

Comment (by nacin):

 I imagine the hook should receive, in addition to $domain and $path, the
 $current_site variable, as we would have already declared
 ms_not_installed() earlier if we couldn't find the network.

 The branching here is not entirely obvious; I actually wanted to move all
 of this code into ms_not_installed() entirely but then I realized its name
 wasn't a very good fit. Looking at [attachment:21143.diff], what about the
 case when ms_not_installed() is to be called? I'd imagine the hook should
 be fired then, as well? The situation is where a site cannot be found for
 $domain and it also doesn't match the found network.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21143#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list