[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 04:54:47 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 jeremyfelt):

 Replying to [comment:16 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.

 > ...what about the case when ms_not_installed() is to be called?

 Good points.

 In [https://core.trac.wordpress.org/attachment/ticket/21143/21143.2.diff
 21143.2.diff], 2 hooks are added - `network_not_found` to cover the first
 `ms_not_installed()` instance and `site_not_found` to cover the entire no
 blog block. `$current_site` is now passed to `site_not_found` as well.

 I wonder how necessary that signup redirect is. If that was taken out or
 checked separately, the redirect decision would become cleaner.

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


More information about the wp-trac mailing list