Make WordPress Core

Ticket #35422: wp-login.php.4.patch

File wp-login.php.4.patch, 878 bytes (added by pbearne, 9 years ago)

with the extra the in doc block removed

  • src/wp-login.php

     
    671671break;
    672672
    673673case 'register' :
    674         if ( is_multisite() ) {
     674        /**
     675         * Filter the is_multisite returned value.
     676         *
     677         * @since 4.5
     678         *
     679         * @param bool is_multisite().
     680         */
     681         if ( apply_filters( 'require_wp_signup', is_multisite() ) ) {
    675682                /**
    676                  * Filter the Multisite sign up URL.
     683                 * Filter the Multi-site sign up URL.
    677684                 *
    678685                 * @since 3.0.0
    679686                 *
    680687                 * @param string $sign_up_url The sign up URL.
    681688                 */
    682                 wp_redirect( apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ) );
    683                 exit;
     689                if ( wp_redirect( apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ) ) ){
     690                        exit;
     691                };
     692
    684693        }
    685694
    686695        if ( !get_option('users_can_register') ) {