Skip to:
Content

BuddyPress.org

Changeset 3370


Ignore:
Timestamp:
11/07/2010 12:24:39 AM (14 years ago)
Author:
djpaul
Message:

Use esc_html() instead of deprecated wp_specialchars()

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-templatetags.php

    r3300 r3370  
    397397        <p class="error"><?php echo $errmsg ?></p>
    398398    <?php }
    399     echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" /></p>';
     399    echo '<input name="blog_title" type="text" id="blog_title" value="'.esc_html($blog_title, 1).'" /></p>';
    400400    ?>
    401401
  • trunk/bp-core/bp-core-filters.php

    r3369 r3370  
    195195        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    196196
    197     $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     197    $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    198198    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    199199    $message = sprintf(__("Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n%1$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%2$s", 'buddypress' ), $activate_url, esc_url("http://{$domain}{$path}" ) );
     
    229229        $email = '&e=1';
    230230
    231     $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
     231    $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : esc_html( get_site_option( "site_name" ) );
    232232    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    233233    $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url . $email, esc_url( "http://{$domain}{$path}" ) );
  • trunk/bp-core/bp-core-settings.php

    r3369 r3370  
    4343
    4444        if ( $_POST['email'] != '' )
    45             $current_user->user_email = wp_specialchars( trim( $_POST['email'] ) );
     45            $current_user->user_email = esc_html( trim( $_POST['email'] ) );
    4646
    4747        if ( $_POST['pass1'] != '' && $_POST['pass2'] != '' ) {
  • trunk/bp-core/bp-core-signup.php

    r3369 r3370  
    610610        $admin_email = 'noreply@' . $_SERVER['SERVER_NAME'];
    611611
    612     $from_name = ( '' == get_option( 'blogname' ) ) ? 'BuddyPress' : wp_specialchars( get_option( 'blogname' ) );
     612    $from_name = ( '' == get_option( 'blogname' ) ) ? 'BuddyPress' : esc_html( get_option( 'blogname' ) );
    613613    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
    614614    $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url );
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r3369 r3370  
    5959
    6060                <div id="message" class="<?php echo $type; ?> fade">
    61                     <p><?php echo wp_specialchars( esc_attr( $message ) ); ?></p>
     61                    <p><?php echo esc_html( esc_attr( $message ) ); ?></p>
    6262                </div>
    6363<?php       endif; ?>
Note: See TracChangeset for help on using the changeset viewer.