Make WordPress Core

Ticket #31076: 31076.2.patch

File 31076.2.patch, 3.0 KB (added by SergeyBiryukov, 12 years ago)
  • src/wp-includes/ms-functions.php

     
    811811        if ( !is_subdomain_install() || get_current_site()->id != 1 )
    812812                $activate_url = network_site_url("wp-activate.php?key=$key");
    813813        else
    814                 $activate_url = "http://{$domain}{$path}wp-activate.php?key=$key"; // @todo use *_url() API
     814                $activate_url = set_url_scheme( "http://{$domain}{$path}wp-activate.php?key=$key" ); // @todo use *_url() API
    815815
    816816        $activate_url = esc_url($activate_url);
    817817        $admin_email = get_site_option( 'admin_email' );
     
    841841                        $domain, $path, $title, $user, $user_email, $key, $meta
    842842                ),
    843843                $activate_url,
    844                 esc_url( "http://{$domain}{$path}" ),
     844                esc_url( set_url_scheme( "http://{$domain}{$path}" ) ),
    845845                $key
    846846        );
    847847        // TODO: Don't hard code activation link.
  • src/wp-signup.php

     
    370370 * @param array $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()
    371371 */
    372372function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array() ) {
     373        $blog_url = set_url_scheme( "http://{$domain}{$path}" );
    373374        ?>
    374         <h2><?php printf( __( 'The site %s is yours.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
     375        <h2><?php printf( __( 'The site %s is yours.' ), sprintf( '<a href="%s">%s</a>', $blog_url, $blog_title ) ) ?></h2>
    375376        <p>
    376                 <?php printf( __( '<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name ) ?>
     377                <?php printf( __( '%1$s is your new site. <a href="%2$s">Log in</a> as &#8220;%3$s&#8221; using your existing password.' ),
     378                        sprintf( '<a href="%s">%s</a>', $blog_url, $blog_url ),
     379                        set_url_scheme( "http://{$domain}{$path}wp-login.php" ),
     380                        $user_name
     381                ); ?>
    377382        </p>
    378383        <?php
    379384        /**
     
    622627 * @param array $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()
    623628 */
    624629function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $user_email = '', $meta = array() ) {
     630        $blog_url = set_url_scheme( "http://{$domain}{$path}" );
    625631        ?>
    626         <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
     632        <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), sprintf( '<a href="%s">%s</a>', $blog_url, $blog_title ) ) ?></h2>
    627633
    628634        <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.' ) ?></p>
    629635        <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ),  $user_email) ?></p>