[wp-trac] [WordPress Trac] #13689: multisite noblogredirect set, 404 error result not sending proper info with IIS

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 3 21:48:45 UTC 2010


#13689: multisite noblogredirect set, 404 error result not sending proper info with
IIS
--------------------------+-------------------------------------------------
 Reporter:  Frumph        |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:  iis-support
--------------------------+-------------------------------------------------

Comment(by Frumph):

 .. It's not the filter.  It's the behavior.

 Just doing

 `
 function maybe_redirect_404() {
         global $current_site;
         if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) ) {
                 $destination = NOBLOGREDIRECT;
                 if ( $destination == '%siteurl%' )
                         $destination = network_home_url();
                 wp_redirect( $destination );
                 exit();
         }
 }
 `

 Will cause the same bad-behavior.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13689#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list