Make WordPress Core


Ignore:
Timestamp:
04/25/2014 07:11:32 AM (11 years ago)
Author:
DrewAPicture
Message:

Clean up duplicate hook notations and adjacency for calls to the wp_signup_location filter.

Also adds braces missed in [25535].

See #26869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r26868 r28215  
    296296
    297297        if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
    298             if ( is_multisite() )
     298            if ( is_multisite() ) {
    299299                /** This filter is documented in wp-login.php */
    300300                $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
    301             else
     301            } else {
    302302                $redirect_url = site_url( 'wp-login.php?action=register' );
     303            }
     304
    303305            wp_redirect( $redirect_url, 301 );
    304306            die();
Note: See TracChangeset for help on using the changeset viewer.