Ticket #11644: 11644.deprecated-wp-specialchars-usage.patch
File 11644.deprecated-wp-specialchars-usage.patch, 1.5 KB (added by , 15 years ago) |
---|
-
wp-admin/ms-edit.php
537 537 wp_die( __('Missing email.') ); 538 538 539 539 $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'] ) ); 541 541 542 542 if ( false == $user_id ) 543 543 wp_die( __('Duplicated username or email address.') ); -
wp-includes/default-filters.php
147 147 148 148 // Misc filters 149 149 add_filter( 'option_ping_sites', 'privacy_ping_filter' ); 150 add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() oresc_html() or it'll cause an infinite loop150 add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be esc_html() or it'll cause an infinite loop 151 151 add_filter( 'option_home', '_config_wp_home' ); 152 152 add_filter( 'option_siteurl', '_config_wp_siteurl' ); 153 153 add_filter( 'tiny_mce_before_init', '_mce_set_direction' );