Ticket #12480: 12480.diff
File 12480.diff, 1.3 KB (added by , 14 years ago) |
---|
-
wp-includes/default-filters.php
128 128 add_filter( 'comment_text', 'convert_chars' ); 129 129 add_filter( 'comment_text', 'make_clickable', 9 ); 130 130 add_filter( 'comment_text', 'force_balance_tags', 25 ); 131 add_filter( 'comment_text', 'fill_empty_links', 24 ); 131 132 add_filter( 'comment_text', 'convert_smilies', 20 ); 132 133 add_filter( 'comment_text', 'wpautop', 30 ); 133 134 -
wp-includes/formatting.php
1094 1094 } 1095 1095 1096 1096 /** 1097 * Adds blank string to all HTML A empty elements in content. 1098 * 1099 * @since 3.0.0 1100 * 1101 * @param string $text Content that may contain HTML A elements. 1102 * @return string Converted content. 1103 */ 1104 function fill_empty_links( $text ) 1105 { 1106 return preg_replace_callback( '#<a (.+?)>[\s|\ ]*</a>#i', create_function('$matches','if( $matches[1] ) return "<a $matches[1] >blank</a>";'), $text); 1107 } 1108 1109 /** 1097 1110 * Acts on text which is about to be edited. 1098 1111 * 1099 1112 * Unless $richedit is set, it is simply a holder for the 'format_to_edit'