Changeset 13106 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 02/13/2010 10:35:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r13047 r13106 868 868 if ( isset( $_GET['redirect'] ) ) { 869 869 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 ) ); 871 871 } elseif ( isset( $_POST['redirect'] ) ) { 872 872 $url = wpmu_admin_redirect_add_updated_param( $_POST['redirect'] ); … … 1156 1156 if ( $admin_email == '' ) 1157 1157 $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" ) ); 1159 1159 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 1160 1160 $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 ); … … 1175 1175 if ( $admin_email == '' ) 1176 1176 $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" ) ); 1178 1178 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 1179 1179 $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 ); … … 1479 1479 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 1480 1480 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" ) ); 1482 1482 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 1483 1483 $message = $welcome_email; … … 1512 1512 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 1513 1513 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" ) ); 1515 1515 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 1516 1516 $message = $welcome_email;
Note: See TracChangeset
for help on using the changeset viewer.