WordPress.org

Make WordPress Core

Ticket #11644: 11644.deprecated-wp-specialchars-usage.patch

File 11644.deprecated-wp-specialchars-usage.patch, 1.5 KB (added by hakre, 10 years ago)
  • wp-admin/ms-edit.php

     
    537537                        wp_die( __('Missing email.') );
    538538
    539539                $password = wp_generate_password();
    540                 $user_id = wpmu_create_user(wp_specialchars( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );
     540                $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );
    541541
    542542                if ( false == $user_id )
    543543                        wp_die( __('Duplicated username or email address.') );
  • wp-includes/default-filters.php

     
    147147
    148148// Misc filters
    149149add_filter( 'option_ping_sites',    'privacy_ping_filter'                 );
    150 add_filter( 'option_blog_charset',  '_wp_specialchars'                    ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop
     150add_filter( 'option_blog_charset',  '_wp_specialchars'                    ); // IMPORTANT: This must not be esc_html() or it'll cause an infinite loop
    151151add_filter( 'option_home',          '_config_wp_home'                     );
    152152add_filter( 'option_siteurl',       '_config_wp_siteurl'                  );
    153153add_filter( 'tiny_mce_before_init', '_mce_set_direction'                  );