WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/13/2010 10:35:10 AM (12 years ago)
Author:
nacin
Message:

Don't use deprecated functions. see #11388

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r13047 r13106  
    868868    if ( isset( $_GET['redirect'] ) ) {
    869869        if ( substr( $_GET['redirect'], 0, 2 ) == 's_' )
    870             $url .= "&action=blogs&s=". wp_specialchars( substr( $_GET['redirect'], 2 ) );
     870            $url .= "&action=blogs&s=". esc_html( substr( $_GET['redirect'], 2 ) );
    871871    } elseif ( isset( $_POST['redirect'] ) ) {
    872872        $url = wpmu_admin_redirect_add_updated_param( $_POST['redirect'] );
     
    11561156    if ( $admin_email == '' )
    11571157        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    1158     $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     1158    $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    11591159    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    11601160    $message = sprintf( apply_filters( 'wpmu_signup_blog_notification_email', __( "To activate your blog, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your blog here:\n\n%s" ) ), $activate_url, esc_url( "http://{$domain}{$path}" ), $key );
     
    11751175    if ( $admin_email == '' )
    11761176        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    1177     $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     1177    $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    11781178    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    11791179    $message = sprintf( apply_filters( 'wpmu_signup_user_notification_email', __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\n" ) ), site_url( "wp-activate.php?key=$key" ), $key );
     
    14791479        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    14801480
    1481     $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     1481    $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    14821482    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    14831483    $message = $welcome_email;
     
    15121512        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    15131513
    1514     $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     1514    $from_name = get_site_option( "site_name" ) == '' ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    15151515    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    15161516    $message = $welcome_email;
Note: See TracChangeset for help on using the changeset viewer.