Make WordPress Core

Ticket #31076: 31076.patch

File 31076.patch, 2.7 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_link = sprintf( '<a href="%s">%s</a>', set_url_scheme( "http://{$domain}{$path}" ), $blog_title );
    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.' ), $blog_link ) ?></h2>
    375376        <p>
    376377                <?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 ) ?>
    377378        </p>
     
    622623 * @param array $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()
    623624 */
    624625function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $user_email = '', $meta = array() ) {
     626        $blog_link = sprintf( '<a href="%s">%s</a>', set_url_scheme( "http://{$domain}{$path}" ), $blog_title );
    625627        ?>
    626         <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
     628        <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), $blog_link ) ?></h2>
    627629
    628630        <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.' ) ?></p>
    629631        <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ),  $user_email) ?></p>