Ticket #30130: 30130.2.diff
File 30130.2.diff, 1.9 KB (added by , 8 years ago) |
---|
-
wp-includes/default-filters.php
91 91 add_filter( $filter, 'balanceTags', 50 ); 92 92 } 93 93 94 // Normalize to NFC 95 foreach ( array( 'sanitize_email', 'sanitize_file_name', 'sanitize_html_class', 'sanitize_key', 'sanitize_meta', 'sanitize_mime_type', 'sanitize_option', 'sanitize_sql_orderby', 'sanitize_text_field', 'sanitize_title', 'sanitize_title_for_query', 'sanitize_title_with_dashes', 'sanitize_user', 'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'title_save_pre' ) as $filter ) { 96 add_filter( $filter, 'normalize_to_nfc' ); 97 } 98 94 99 // Format strings for display. 95 100 foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description', 'link_notes', 'bloginfo', 'wp_title', 'widget_title' ) as $filter ) { 96 101 add_filter( $filter, 'wptexturize' ); … … 262 267 add_action( 'atom_head', 'atom_site_icon' ); 263 268 add_action( 'rss2_head', 'rss2_site_icon' ); 264 269 265 266 270 // WP Cron 267 271 if ( !defined( 'DOING_CRON' ) ) 268 272 add_action( 'init', 'wp_cron' ); -
wp-includes/formatting.php
4793 4793 } 4794 4794 return $short_url; 4795 4795 } 4796 4797 /** 4798 * Normalize text, if necessary and possible 4799 * See: http://www.w3.org/International/docs/charmod-norm/#choice-of-normalization-form 4800 * 4801 * @since 4.6.0 4802 * 4803 * @param string $content Content to normalize 4804 * @return string 4805 */ 4806 function normalize_to_nfc( $content ) { 4807 if ( function_exists( 'normalizer_normalize' ) ) { 4808 if ( ! normalizer_is_normalized( $content, Normalizer::FORM_C ) ) { 4809 $content = normalizer_normalize( $content, Normalizer::FORM_C ); 4810 } 4811 } 4812 return $content; 4813 } 4814 No newline at end of file